|
|
I can't get string parameters to return a value. I'm pretty sure I should
be able to do this. See code for the example:
// Example start
#macro TestString(String)
// This line should change the parameter, it does not, it only changes
the local value !!!
#declare String = "Bye Now!"
#end
#macro TestFloat(Float)
// This line changes the parameter as expected.
#declare Float = 123.4;
#end
// Works as expected
#local MyFloat = 5;
TestFloat(MyFloat)
#debug str(MyFloat,1,1)
// Does not work as expected
#local MyString = "Hello"
TestString(MyString)
#debug MyString
#debug "\n"
sphere {1,1} // So the engine doesn't complain...
// Example end
Output is:
123.4Hello
Should be:
123.4Bye Now!
I work on Windows NT on the standard binaries.
Post a reply to this message
|
|