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 display-planes-in-3d-view #3857

Merged
merged 2 commits into from
Mar 5, 2019
Merged

Fix display-planes-in-3d-view #3857

merged 2 commits into from
Mar 5, 2019

Conversation

philippotto
Copy link
Member

@philippotto philippotto commented Mar 4, 2019

URL of deployed dev instance (used for testing):

  • https://___.webknossos.xyz

Steps to test:

  • toggle "display planes in 3d viewport" and also make the viewports (dis)appear via tab management

Issues:


Copy link
Member

@daniel-wer daniel-wer left a comment

Choose a reason for hiding this comment

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

Nice fix! Just left a small remark.

@@ -316,12 +315,13 @@ class SceneController {
}
}
} else {
const { tdViewDisplayPlanes } = Store.getState().userConfiguration;
Copy link
Member

Choose a reason for hiding this comment

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

Does changing the user setting trigger a render? Otherwise I would have expected that the setting change will only be applied after the user moved or so.

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, it still updates when just toggling the setting. I think store changes in general trigger a re-render.

@philippotto philippotto merged commit 0bfb2b6 into master Mar 5, 2019
@normanrz normanrz deleted the fix-display-planes branch August 12, 2019 09:46
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.

Planes in 3D viewport are shown regardless of setting
2 participants