It passes by the line that declares linear_spline because of the #if
statement.
#include "colors.inc"
#declare Test = 0;//0 is the same as false
#if (Test)
//because Test is 0, all this stuff is ignored and the #else
block is used instead.
#declare screen_text = texture {pigment {White}}
//You can't declare a variable as linear_spline! But this block
is ignored, so it doesn't matter.
#declare Spline = linear_spline;
#else
#declare screen_text = texture {pigment {White} finish {diffuse
0.3
reflection 0.3 specular 0.7}
//You can't declare a variable as cubic_spline!
#declare Spline = cubic_spline;
#end
Post a reply to this message
|