Minor changes
This commit is contained in:
parent
d65334d18e
commit
bcb0f61747
1 changed files with 3 additions and 2 deletions
|
@ -161,7 +161,7 @@ class ViewProviderFrame(object):
|
||||||
pl = fp.getPropertyByName("Placement")
|
pl = fp.getPropertyByName("Placement")
|
||||||
self.transform.translation = (pl.Base.x,
|
self.transform.translation = (pl.Base.x,
|
||||||
pl.Base.y,
|
pl.Base.y,
|
||||||
pl.Base.Z)
|
pl.Base.z)
|
||||||
self.transform.rotation = pl.Rotation.Q
|
self.transform.rotation = pl.Rotation.Q
|
||||||
|
|
||||||
def getDisplayModes(self, vobj):
|
def getDisplayModes(self, vobj):
|
||||||
|
@ -309,7 +309,7 @@ class FeatureFramePanel:
|
||||||
else:
|
else:
|
||||||
FreeCAD.Console.PrintError("Multipart selection not available.")
|
FreeCAD.Console.PrintError("Multipart selection not available.")
|
||||||
self.reject()
|
self.reject()
|
||||||
|
|
||||||
if not selected.HasSubObjects:
|
if not selected.HasSubObjects:
|
||||||
FreeCAD.Console.PrintError("Part selected not feature.")
|
FreeCAD.Console.PrintError("Part selected not feature.")
|
||||||
self.reject()
|
self.reject()
|
||||||
|
@ -377,6 +377,7 @@ class FeatureFramePanel:
|
||||||
"Center": CenterPanel,
|
"Center": CenterPanel,
|
||||||
"PointOnCenterline": PointOnCenterlinePanel}
|
"PointOnCenterline": PointOnCenterlinePanel}
|
||||||
new_panel = paneldict[sel_choice](self.selected, self.so_desc)
|
new_panel = paneldict[sel_choice](self.selected, self.so_desc)
|
||||||
|
############## PROBLEM HERE ##################
|
||||||
FreeCADGui.Control.closeDialog()
|
FreeCADGui.Control.closeDialog()
|
||||||
FreeCADGui.Control.showDialog(new_panel)
|
FreeCADGui.Control.showDialog(new_panel)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue