Skip to content

Commit

Permalink
feat(rhino): open comments view with shaded mode (#1860)
Browse files Browse the repository at this point in the history
Change DisplayModeDescription to "Shaded" of speckle comment view
  • Loading branch information
oguzhankoral authored Nov 15, 2022
1 parent 014b066 commit 7dca3d1
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1175,7 +1175,12 @@ await Task.Run(() =>
speckleCommentView.ActiveViewport.SetCameraDirection(direction, false);
speckleCommentView.ActiveViewport.SetCameraLocation(cameraLocation, true);
speckleCommentView.Maximized = true;

DisplayModeDescription shaded = DisplayModeDescription.FindByName("Shaded");
if (shaded!= null)
{
speckleCommentView.ActiveViewport.DisplayMode = shaded;
}

if (Doc.Views.ActiveView.ActiveViewport.Name != "SpeckleCommentView")
{
Doc.Views.ActiveView = speckleCommentView;
Expand Down

0 comments on commit 7dca3d1

Please sign in to comment.