Notifications
Clear all
[Closed] Persistent Global Variables
Page 2 / 2
Prev
Jun 21, 2011 12:43 pm
The functions could also be moved inside the rollout.
SOLVED!
Moving the function SetWallMaterial inside the rollout stopped both errors. I guess it is because SetWallMaterial is used to set the variable WallMat. Whereas the other functions are only called if the rollout is created and buttons are pressed. All the code within the def gets stored with the scene it must get evaluated on reload.
Thanks again Paul for your help.
Page 2 / 2
Prev