Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(layers): fix initialization bugs when less than all views mounted #476

Merged
merged 1 commit into from
Nov 3, 2023
Merged

fix(layers): fix initialization bugs when less than all views mounted #476

merged 1 commit into from
Nov 3, 2023

Conversation

PaulHax
Copy link
Collaborator

@PaulHax PaulHax commented Oct 31, 2023

If configured for axial only view, then add a layer, layer properties GUI would just try to get first view config (Sagittal?), which did not exist.

If a layer was created, without the view mounted, the colorBy layer config would not be set, and the layer would be invisible.

@netlify
Copy link

netlify bot commented Oct 31, 2023

Deploy Preview for volview-dev ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit f78aa9d
🔍 Latest deploy log https://app.netlify.com/sites/volview-dev/deploys/65417a71b4dde60008b25802
😎 Deploy Preview https://deploy-preview-476--volview-dev.netlify.app/
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

location: 'pointData',
});
setColorPreset(viewID, dataID, getPreset(dataID));
const defaultColorPreset = (viewID: string, layerID: LayerID) => {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this would be better named as resetToDefault, or at least have the verb reset in the name.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, changed to resetColorPreset

If configured for axial only view, then add a layer, layer
properties GUI would just try to get first view config (Sagittal?),
which did not exist.

If a layer was created, without the view mounted, the colorBy
layer config would not be set, and the layer would be invisible.
@PaulHax PaulHax requested a review from floryst November 3, 2023 14:21
@floryst
Copy link
Collaborator

floryst commented Nov 3, 2023

LGTM!

@floryst floryst merged commit 5aaa0d7 into Kitware:main Nov 3, 2023
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