Invalidate dim GUID index after Shift+D to ensure duplicated parametric dimensions auto-regenerate

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Ryan Schultz
2026-07-12 11:54:35 -05:00
parent 6be06bb6c5
commit 44bf8527f6
@@ -1325,6 +1325,10 @@ class OverrideDuplicateMove(bpy.types.Operator):
if new_active_obj: if new_active_obj:
context.view_layer.objects.active = new_active_obj context.view_layer.objects.active = new_active_obj
if any(e.is_a("IfcAnnotation") for e in old_to_new):
import bonsai.bim.module.drawing.handler as _drawing_handler
_drawing_handler.invalidate_dim_index()
return old_to_new return old_to_new