Skip to content

Conversation

@seankmartin
Copy link
Contributor

@seankmartin seankmartin commented Oct 21, 2025

Always store the number of depth samples from volume rendering in the JSON state if volume rendering is enabled. Now the JSON state should contain the number of volume rendering samples if it was either changed from the default, or never changed from the default, but volume rendering is active.

This should allow us to make future changes to the volume rendering number of samples more readily without affecting existing states that have volume rendering in use.

@jbms
Copy link
Collaborator

jbms commented Oct 21, 2025

I'd be inclined to bump the default for new layers but not modify existing states.

@seankmartin seankmartin changed the title feat: bump default volume rendering samples feat: always store volume rendering depth samples in JSON state if volume rendering is enabled Nov 4, 2025
@seankmartin seankmartin marked this pull request as ready for review November 4, 2025 11:41
@seankmartin
Copy link
Contributor Author

Thanks @jbms, I changed the scope of this PR to instead focus on always storing the number of depth samples from volume rendering in the JSON state if volume rendering is enabled. So now the JSON state should contain the number of volume rendering samples if it was either changed from the default, or never changed from the default, but volume rendering is active.

This should allow us to make future changes to the volume rendering number of samples more readily without affecting existing states that have volume rendering in use

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants