BIM: Fixed possible filename ambiguity in Layers - fixes #15038
This commit is contained in:
committed by
Chris Hennes
parent
deea57fcb7
commit
77c894694e
@@ -179,7 +179,7 @@
|
||||
<file>ui/dialogIfcPropertiesRedux.ui</file>
|
||||
<file>ui/dialogIfcQuantities.ui</file>
|
||||
<file>ui/dialogImport.ui</file>
|
||||
<file>ui/dialogLayers.ui</file>
|
||||
<file>ui/dialogLayersIFC.ui</file>
|
||||
<file>ui/dialogLibrary.ui</file>
|
||||
<file>ui/dialogListWidget.ui</file>
|
||||
<file>ui/dialogMaterialChooser.ui</file>
|
||||
|
||||
@@ -73,7 +73,7 @@ class BIM_Layers:
|
||||
self.assignList = {}
|
||||
|
||||
# create the dialog
|
||||
self.dialog = FreeCADGui.PySideUic.loadUi(":/ui/dialogLayers.ui")
|
||||
self.dialog = FreeCADGui.PySideUic.loadUi(":/ui/dialogLayersIFC.ui")
|
||||
|
||||
# store the ifc icon
|
||||
self.ifcicon = QtGui.QIcon(":/icons/IFC.svg")
|
||||
@@ -166,6 +166,10 @@ class BIM_Layers:
|
||||
changed = True
|
||||
if self.model.item(row, 1).icon().isNull():
|
||||
obj = Draft.make_layer(self.model.item(row, 1).text())
|
||||
# By default BIM layers should not swallow their children otherwise
|
||||
# they will disappear from the tree root
|
||||
obj.ViewObject.addProperty("App::PropertyBool", "HideChildren", "Layer")
|
||||
obj.ViewObject.HideChildren = True
|
||||
else:
|
||||
from nativeifc import ifc_tools
|
||||
import FreeCADGui
|
||||
@@ -510,7 +514,7 @@ class BIM_Layers:
|
||||
self.assignList.setdefault(target.Name, [])
|
||||
for i in selected:
|
||||
if i not in self.assignList[target.Name]:
|
||||
self.ssignList[target.Name].append(i)
|
||||
self.assignList[target.Name].append(i)
|
||||
|
||||
|
||||
if FreeCAD.GuiUp:
|
||||
|
||||
Reference in New Issue
Block a user