mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-13 02:47:48 +00:00
Readable error trying to create a texture style without textures #5855
This commit is contained in:
@@ -825,8 +825,11 @@ class EditSurfaceStyle(bpy.types.Operator, tool.Ifc.Operator):
|
|||||||
"Define shading/render style first",
|
"Define shading/render style first",
|
||||||
)
|
)
|
||||||
return {"CANCELLED"}
|
return {"CANCELLED"}
|
||||||
textures = tool.Ifc.run("style.add_surface_textures", textures=self.get_texture_attributes(), uv_maps=[])
|
textures = self.get_texture_attributes()
|
||||||
if textures:
|
if not textures:
|
||||||
|
self.report({"ERROR"}, "Cannot create texture style without any textures.")
|
||||||
|
return {"CANCELLED"}
|
||||||
|
textures = tool.Ifc.run("style.add_surface_textures", textures=textures, uv_maps=[])
|
||||||
texture_style = tool.Ifc.run(
|
texture_style = tool.Ifc.run(
|
||||||
"style.add_surface_style",
|
"style.add_surface_style",
|
||||||
style=self.style,
|
style=self.style,
|
||||||
|
|||||||
Reference in New Issue
Block a user