Always set default values at the start of a sync #151
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Always set default values at the start of a sync, so that when a "do nothing" is set in Solaris, or a different node is picked, it'll start back with sane defaults. This addresses curves, lights, meshes and volumes.
TODO: All global values in renderParam need the defaults set on any scene refresh also, but for now we can just be explicit with our RenderSettings node (seems like no other delegate works correctly here as well, including PRMan).
And as an extra note, we may need to be vigilant on any new schema that gets added here. We can also use the cycles node API to set built-in defaults if we prefer also, but lets do that once we upgrade to the latest cycles API just in case they have a new/different way now.