mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-24 05:17:58 +00:00
Assigning an ifc class to an object now displays a message if the object is not in OBJECT mode
This commit is contained in:
@@ -158,6 +158,9 @@ class AssignClass(bpy.types.Operator, Operator):
|
|||||||
ifc_context = tool.Ifc.get().by_id(ifc_context)
|
ifc_context = tool.Ifc.get().by_id(ifc_context)
|
||||||
active_object = context.active_object
|
active_object = context.active_object
|
||||||
for obj in objects:
|
for obj in objects:
|
||||||
|
if obj.mode != "OBJECT":
|
||||||
|
self.report({"ERROR"}, "Object must be in OBJECT mode to assign class")
|
||||||
|
continue
|
||||||
core.assign_class(
|
core.assign_class(
|
||||||
tool.Ifc,
|
tool.Ifc,
|
||||||
tool.Collector,
|
tool.Collector,
|
||||||
|
|||||||
Reference in New Issue
Block a user