-
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
MAGN-9744 Studio 1.0.0.775 partially renders graphics on first try #6356
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -149,14 +149,14 @@ public void Node_RenderingUpToDate() | |
p1.UpdateValue(new UpdateValueParams("IsVisible", "false")); | ||
|
||
Assert.True(BackgroundPreviewGeometry.HasNumberOfPointsCurvesAndMeshes(7, 6, 0)); | ||
Assert.AreEqual(6, BackgroundPreviewGeometry.NumberOfInvisiblePoints()); | ||
Assert.AreEqual(1, BackgroundPreviewGeometry.NumberOfInvisiblePoints()); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @marimano Are we just fixing the test to match the behavior here, or have the changes you made actually result in there being less objects in the scene? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @ikeough these changes in tests are done to match new behavior which is presented in this PR. All points of a node are stored in a single geomentry instead of storing each array item of the node separately. So, here are 6 points which are stored in 1 |
||
|
||
//flip off the lines node | ||
var l1 = model.CurrentWorkspace.Nodes.First(x => x.GUID.ToString() == "7c1cecee-43ed-43b5-a4bb-5f71c50341b2"); | ||
l1.UpdateValue(new UpdateValueParams("IsVisible", "false")); | ||
|
||
Assert.True(BackgroundPreviewGeometry.HasNumberOfPointsCurvesAndMeshes(7, 6, 0)); | ||
Assert.AreEqual(6, BackgroundPreviewGeometry.NumberOfInvisibleCurves()); | ||
Assert.AreEqual(1, BackgroundPreviewGeometry.NumberOfInvisibleCurves()); | ||
|
||
//flip those back on and ensure the visualization returns | ||
p1.UpdateValue(new UpdateValueParams("IsVisible", "true")); | ||
|
@@ -322,7 +322,7 @@ public void Node_VisibilityOff_CachedValueUpdated_VisibilityOn_RenderDataCorrect | |
p1.UpdateValue(new UpdateValueParams("IsVisible", "false")); | ||
|
||
Assert.True(BackgroundPreviewGeometry.HasNumberOfPointsCurvesAndMeshes(7, 6, 0)); | ||
Assert.AreEqual(6, BackgroundPreviewGeometry.NumberOfInvisiblePoints()); | ||
Assert.AreEqual(1, BackgroundPreviewGeometry.NumberOfInvisiblePoints()); | ||
|
||
// Now change the number of points | ||
var cbn = | ||
|
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.
For some reasons
Camera
is null in tests when running in self service, after adding this null check tests passed successfully: