mirror of
https://github.com/blender/blender-addons.git
synced 2025-07-20 16:51:10 +00:00
Fix: Update Cell Fracture for removal of old style context override
Update Cell Fracture for removal of old style context override. Pull Request: https://projects.blender.org/blender/blender-addons/pulls/104756
This commit is contained in:

committed by
Jesse Yurkovich

parent
00c06e4599
commit
72e3671e08
@ -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
|
||||
|
Reference in New Issue
Block a user