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

Change DefaultWatch3DViewModel property - Active to virtual #11597

Merged

Conversation

ZiyunShang
Copy link
Contributor

@ZiyunShang ZiyunShang commented Apr 8, 2021

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

  • The codebase is in a better state after this PR
  • Is documented according to the standards
  • The level of testing this PR includes is appropriate
  • User facing strings, if any, are extracted into *.resx files
  • All tests pass using the self-service CI.
  • Snapshot of UI changes, if any.
  • Changes to the API follow Semantic Versioning and are documented in the API Changes document.
  • This PR modifies some build requirements and the readme is updated

Reviewers

@mjkkirschner @QilongTang @aparajit-pratap

FYIs

@@ -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();
Copy link
Contributor Author

@ZiyunShang ZiyunShang Apr 8, 2021

Choose a reason for hiding this comment

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

BTW, I have used Dynamo 2.12.0 when I debug Dynamo code, I found that "Settings" had disappeared from the menu. I don't know how to toggle "ShowEdges" now.
Capture

Copy link
Contributor

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)
Copy link
Contributor

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?

Copy link
Contributor

@QilongTang QilongTang left a 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

@QilongTang QilongTang merged commit 5160543 into DynamoDS:master Apr 12, 2021
@ZiyunShang ZiyunShang deleted the t_shanz/UpdateDefaultWatch3DViewModel branch April 12, 2021 06:50
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