From 6206bbe67a10853131b7d9076bf77353f743bb2e Mon Sep 17 00:00:00 2001 From: Jesse Yurkovich Date: Sun, 16 Jul 2023 19:02:46 -0700 Subject: [PATCH] Fix: Update Cell Fracture for removal of old style context override --- object_fracture_cell/__init__.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/object_fracture_cell/__init__.py b/object_fracture_cell/__init__.py index a37dc05fb..33509ee46 100644 --- a/object_fracture_cell/__init__.py +++ b/object_fracture_cell/__init__.py @@ -76,11 +76,9 @@ def main_object(context, collection, obj, level, **kw): # must apply after boolean. if use_recenter: - bpy.ops.object.origin_set( - {"selected_editable_objects": objects}, - type='ORIGIN_GEOMETRY', - center='MEDIAN', - ) + context_override = {"selected_editable_objects": objects} + with bpy.context.temp_override(**context_override): + bpy.ops.object.origin_set(type='ORIGIN_GEOMETRY', center='MEDIAN') # ---------- # Recursion -- 2.30.2