Skip to content

Commit fe395f9

Browse files
committed
Revert "fixes #7629: close editing mode for text objects after batch edit"
This reverts commit 950e147.
1 parent 950e147 commit fe395f9

1 file changed

Lines changed: 0 additions & 19 deletions

File tree

src/bonsai/bonsai/bim/module/drawing/operator.py

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -3294,15 +3294,6 @@ def apply_to_selected_objects_with_captured_data(self, context, active_obj, capt
32943294
"""Apply changes to other selected text objects using captured apply settings"""
32953295
selected_objects = [obj for obj in context.selected_objects if obj != active_obj]
32963296

3297-
# Track editing status ONLY for selected objects (not all visible objects)
3298-
editing_status = {}
3299-
for obj in selected_objects:
3300-
element = tool.Ifc.get_entity(obj)
3301-
if not element or not tool.Drawing.is_annotation_object_type(element, ["TEXT", "TEXT_LEADER"]):
3302-
continue
3303-
obj_props = tool.Drawing.get_text_props(obj)
3304-
editing_status[obj] = obj_props.is_editing if hasattr(obj_props, "is_editing") else False
3305-
33063297
for obj in selected_objects:
33073298
element = tool.Ifc.get_entity(obj)
33083299
if not element:
@@ -3354,16 +3345,6 @@ def apply_to_selected_objects_with_captured_data(self, context, active_obj, capt
33543345
if needs_update:
33553346
core.edit_text(tool.Drawing, obj=obj)
33563347

3357-
# Restore original editing state for all selected objects
3358-
for obj, was_editing in editing_status.items():
3359-
obj_props = tool.Drawing.get_text_props(obj)
3360-
if hasattr(obj_props, "is_editing"):
3361-
# If object was NOT originally being edited, disable editing mode now
3362-
if not was_editing and obj_props.is_editing:
3363-
core.disable_editing_text(tool.Drawing, obj=obj)
3364-
# If object WAS originally being edited but isn't now, re-enable it
3365-
elif was_editing and not obj_props.is_editing:
3366-
core.enable_editing_text(tool.Drawing, obj=obj)
33673348

33683349
class EnableEditingText(bpy.types.Operator, tool.Ifc.Operator):
33693350
bl_idname = "bim.enable_editing_text"

0 commit comments

Comments
 (0)