Notifications
Clear all

[Closed] Persistent Global Variables

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