reset cached lazy properties on shutdown#334
Conversation
|
Thanks for submitting this! Can you say briefly what problem this solves (ie what is the current/expected behavior)? We don't really have a consistent policy about what should happen to options on a shutdown. Should they go back to the defaults, or stay as-is? But I don't think corresponds to either, it's more about not breaking caching? |
ProblemWhat currently happens is that variables inside ExampleFor example, in my case I would create a point cloud with transparency which sets: But the current lazy state (from previous session) is already set to that, therefore the following branch is skipped. Resulting in opaque rendering. SolutionThe submitted change resets lazy variables states, at shutdown, back to the default initialised. This will make sure that in the next session will correctly apply options to the renderer. Now that I'm thinking about it, it might be better to reset |
No description provided.