|
|
(Running Windows 7 Ultimate Edition, and using v3.7.1 beta 9, but the problem
may not be specific to it.)
Some unexpected behavior with #debug messages, regarding ending line breaks (vs.
their absence). This seems to be different behavior from what I remember in
v3.6xx.
* A SINGLE #debug with NO line break at the end does not show up in 'messages.'
* TWO #debugs without the ending line breaks: only the FIRST message shows up,
not the second.
* With multiple #debugs, and no ending line breaks at all: the final message is
always missing
* Any #debugs (with no ending line breaks) that follow one WITH a line break:
the final message is always missing
* If only the FINAL #debug has an ending line break, all messages show up
* If ALL #debugs have ending line breaks, they all show up
In a nutshell, it seems that the final #debug statement in a scene file MUST
have an ending line break, or there will always be a missing message.
Try commenting-out and/or re-arranging some of the following lines, to see the
results. (Hopefully, the formatting will show up correctly.)
//----------
#version 3.71;
global_settings{assumed_gamma 1.0}
#declare my_first_value = 10;
#declare my_second_value = 20;
// no line break at end...
#debug concat("\n","V1 = <",str(my_first_value,1,0),",
",str(my_second_value,1,0),">")
// This one WITH a line break at end...
#debug concat("\n","V2 = <",str(my_first_value,1,0),",
",str(my_second_value,1,0),">","\n")
// no line break at end
#debug concat("\n","some constants = <",str(30,1,2),", ",str(40,1,2),">")
// no line break at end
#debug concat("\n","MORE constants = <",str(50,1,2),", ",str(60,1,2),">")
// no line break at end
#debug concat("\n","even MORE constants = <",str(70,1,2),", ",str(80,1,2),">")
Post a reply to this message
|
|