-
Notifications
You must be signed in to change notification settings - Fork 635
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
Change DefaultWatch3DViewModel property - Active to virtual #11597
Change DefaultWatch3DViewModel property - Active to virtual #11597
Conversation
@@ -699,7 +699,10 @@ private void RenderPackageFactoryViewModel_PropertyChanged(object sender, Proper | |||
// A full regeneration is required to get the edge geometry. | |||
foreach (var vm in Watch3DViewModels) | |||
{ | |||
vm.RegenerateAllPackages(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you @ZiyunShang , we are doing a lot of UI improvements in Dynamo and indeed show edges are currently hidden. It will be back later but pending for implementation now.
@@ -699,7 +699,10 @@ private void RenderPackageFactoryViewModel_PropertyChanged(object sender, Proper | |||
// A full regeneration is required to get the edge geometry. | |||
foreach (var vm in Watch3DViewModels) | |||
{ | |||
vm.RegenerateAllPackages(); | |||
if (vm is HelixWatch3DViewModel) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hi @ZiyunShang Can you add comment to this type check as to why?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM other than one comment
Purpose
REVIT-166657
Some more info :
#9934
#9377
I have the same opinion with alfarok that when toggling "Revit Background Preview", it has no need to force a regeneration of the render packages for all nodes.
I think we can change "Active" to virtual, so it can be overridden in inherited classes.
I just have a change in DynamoRevit - DynamoDS/DynamoRevit#2687 and override Active property.
Declarations
Check these if you believe they are true
*.resx
filesReviewers
@mjkkirschner @QilongTang @aparajit-pratap
FYIs