Fix: Update Cell Fracture for removal of old style context override #104756
@ -76,11 +76,9 @@ def main_object(context, collection, obj, level, **kw):
|
|||||||
|
|
||||||
# must apply after boolean.
|
# must apply after boolean.
|
||||||
if use_recenter:
|
if use_recenter:
|
||||||
bpy.ops.object.origin_set(
|
context_override = {"selected_editable_objects": objects}
|
||||||
{"selected_editable_objects": objects},
|
with bpy.context.temp_override(**context_override):
|
||||||
type='ORIGIN_GEOMETRY',
|
bpy.ops.object.origin_set(type='ORIGIN_GEOMETRY', center='MEDIAN')
|
||||||
center='MEDIAN',
|
|
||||||
)
|
|
||||||
|
|
||||||
# ----------
|
# ----------
|
||||||
# Recursion
|
# Recursion
|
||||||
|
Loading…
Reference in New Issue
Block a user