Fix and test importing style attributes twice (#1784)

* Test importing surface attributes twice

* Fix style attributes not cleared when re-importing
This commit is contained in:
Gorgious56
2021-10-08 13:10:24 +02:00
committed by GitHub
parent 170cd3b5f5
commit 8b34eb41fd
2 changed files with 14 additions and 0 deletions
+1
View File
@@ -103,6 +103,7 @@ class Style(blenderbim.core.tool.Style):
@classmethod
def import_surface_attributes(cls, style, obj):
obj.BIMStyleProperties.attributes.clear()
blenderbim.bim.helper.import_attributes2(style, obj.BIMStyleProperties.attributes)
@classmethod