Arch: use new name of the icon Part_3D_object
It is defined in the Part Workbench. Before, it was called `Tree_Part`.
This commit is contained in:
@@ -1805,11 +1805,13 @@ class ComponentTaskPanel:
|
||||
if hasattr(obj.ViewObject,"Proxy"):
|
||||
if hasattr(obj.ViewObject.Proxy,"getIcon"):
|
||||
return QtGui.QIcon(obj.ViewObject.Proxy.getIcon())
|
||||
if obj.isDerivedFrom("Sketcher::SketchObject"):
|
||||
elif obj.isDerivedFrom("Sketcher::SketchObject"):
|
||||
return QtGui.QIcon(":/icons/Sketcher_Sketch.svg")
|
||||
if obj.isDerivedFrom("App::DocumentObjectGroup"):
|
||||
elif obj.isDerivedFrom("App::DocumentObjectGroup"):
|
||||
return QtGui.QApplication.style().standardIcon(QtGui.QStyle.SP_DirIcon)
|
||||
return QtGui.QIcon(":/icons/Tree_Part.svg")
|
||||
elif hasattr(obj.ViewObject, "Icon"):
|
||||
return QtGui.QIcon(obj.ViewObject.Icon)
|
||||
return QtGui.QIcon(":/icons/Part_3D_object.svg")
|
||||
|
||||
def update(self):
|
||||
"""Populate the treewidget with its various items.
|
||||
|
||||
Reference in New Issue
Block a user