mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-22 15:18:06 +00:00
Fix bim.copy_attribute_to_selection missing undo
This commit is contained in:
@@ -198,6 +198,7 @@ class CopyAttributeToSelection(bpy.types.Operator, tool.Ifc.Operator):
|
|||||||
bl_idname = "bim.copy_attribute_to_selection"
|
bl_idname = "bim.copy_attribute_to_selection"
|
||||||
bl_label = "Copy Attribute To Selection"
|
bl_label = "Copy Attribute To Selection"
|
||||||
name: bpy.props.StringProperty()
|
name: bpy.props.StringProperty()
|
||||||
|
bl_options = {"REGISTER", "UNDO"}
|
||||||
|
|
||||||
def _execute(self, context):
|
def _execute(self, context):
|
||||||
value = context.active_object.BIMAttributeProperties.attributes.get(self.name).get_value()
|
value = context.active_object.BIMAttributeProperties.attributes.get(self.name).get_value()
|
||||||
|
|||||||
Reference in New Issue
Block a user