mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-23 14:06:26 +00:00
Fix sync bug where unused styles would be purged when reloading a blender file.
This commit is contained in:
@@ -1478,6 +1478,7 @@ class IfcImporter:
|
|||||||
if not blender_material:
|
if not blender_material:
|
||||||
name = style.Name or str(style.id())
|
name = style.Name or str(style.id())
|
||||||
blender_material = bpy.data.materials.new(name)
|
blender_material = bpy.data.materials.new(name)
|
||||||
|
blender_material.use_fake_user = True
|
||||||
|
|
||||||
self.link_element(style, blender_material)
|
self.link_element(style, blender_material)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user