Draft: PlaneGui: update wp._view earlier

Update wp._view before call to set_to_default, set_to_auto requires a 3D view.
This commit is contained in:
Roy-043
2023-10-27 09:40:45 +02:00
committed by Yorik van Havre
parent ded89f5e8f
commit bccba05d20

View File

@@ -1750,8 +1750,8 @@ def get_working_plane(update=True):
wp = PlaneGui()
if FreeCAD.GuiUp:
wp._view = view # Update _view before call to set_to_default, set_to_auto requires a 3D view.
wp.set_to_default()
wp._view = view
if view is not None:
FreeCAD.draft_working_planes[0].append(view)
FreeCAD.draft_working_planes[1].append(wp)