Using EPset_Drawing data instead of camera props on drawing print #3396

Previously if you change `HasUnderlay` in pset it caused errors because camera properties `has_underlay` wasn't updated.
Still some work need to be done for updating keep camera properties in sync with pset - probably we can should call something like `tool.Drawing.import_drawing()` on EPset_Drawing edit
This commit is contained in:
Andrej730
2023-07-10 11:09:48 +05:00
parent 4359769d54
commit acc5ca339f
2 changed files with 11 additions and 5 deletions
@@ -547,6 +547,9 @@ class Drawing(blenderbim.core.tool.Drawing):
for obj in ifc_importer.added_data.values():
tool.Collector.assign(obj)
# NOTE: EPsetDrawing pset is completely synced with BIMCameraProperties
# but BIMCameraProperties are only synced with EPsetDrawing at drawing import
# therefore camera props can differ from pset if the user changed them from pset.
@classmethod
def import_drawing(cls, drawing):
settings = ifcopenshell.geom.settings()