Merge pull request #1 from Russ4262/patch-1
Path: Extend fix to `updateVisibility()`
This commit is contained in:
@@ -51,7 +51,7 @@ class TaskPanelOpPage(PathOpGui.TaskPanelPage):
|
|||||||
'''
|
'''
|
||||||
|
|
||||||
def initPage(self, obj):
|
def initPage(self, obj):
|
||||||
self.updateVisibility(obj)
|
self.updateVisibility()
|
||||||
|
|
||||||
def profileFeatures(self):
|
def profileFeatures(self):
|
||||||
'''profileFeatures() ... return which of the optional profile features are supported.
|
'''profileFeatures() ... return which of the optional profile features are supported.
|
||||||
@@ -107,7 +107,7 @@ class TaskPanelOpPage(PathOpGui.TaskPanelPage):
|
|||||||
self.form.processPerimeter.setChecked(obj.processPerimeter)
|
self.form.processPerimeter.setChecked(obj.processPerimeter)
|
||||||
self.form.processCircles.setChecked(obj.processCircles)
|
self.form.processCircles.setChecked(obj.processCircles)
|
||||||
|
|
||||||
self.updateVisibility(obj)
|
self.updateVisibility()
|
||||||
|
|
||||||
def getSignalsForUpdate(self, obj):
|
def getSignalsForUpdate(self, obj):
|
||||||
'''getSignalsForUpdate(obj) ... return list of signals for updating obj'''
|
'''getSignalsForUpdate(obj) ... return list of signals for updating obj'''
|
||||||
@@ -126,16 +126,13 @@ class TaskPanelOpPage(PathOpGui.TaskPanelPage):
|
|||||||
|
|
||||||
return signals
|
return signals
|
||||||
|
|
||||||
def updateVisibility(self, sentObj=None):
|
def updateVisibility(self):
|
||||||
hasFace = False
|
hasFace = False
|
||||||
hasGeom = False
|
hasGeom = False
|
||||||
fullModel = False
|
fullModel = False
|
||||||
objBase = list()
|
objBase = list()
|
||||||
|
|
||||||
if sentObj:
|
if hasattr(self.obj, 'Base'):
|
||||||
if hasattr(sentObj, 'Base'):
|
|
||||||
objBase = sentObj.Base
|
|
||||||
elif hasattr(self.obj, 'Base'):
|
|
||||||
objBase = self.obj.Base
|
objBase = self.obj.Base
|
||||||
|
|
||||||
if objBase.__len__() > 0:
|
if objBase.__len__() > 0:
|
||||||
|
|||||||
Reference in New Issue
Block a user