mirror of
https://github.com/blender/blender-addons.git
synced 2025-08-20 13:22:58 +00:00
Fix #104658: Update BoolTool for removal of old style context override
Update BoolTool to account for removal of the context override to bpy.ops Pull Request: https://projects.blender.org/blender/blender-addons/pulls/104662
This commit is contained in:

committed by
Jesse Yurkovich

parent
67a4aab0da
commit
3e344a4b7c
@ -554,8 +554,9 @@ class Auto_Boolean:
|
||||
md.operation = mode
|
||||
md.object = ob
|
||||
|
||||
override = {"object": obj}
|
||||
bpy.ops.object.modifier_apply(override, modifier=md.name)
|
||||
context_override = {'object': obj}
|
||||
with bpy.context.temp_override(**context_override):
|
||||
bpy.ops.object.modifier_apply(modifier=md.name)
|
||||
|
||||
if ob_delete:
|
||||
bpy.data.objects.remove(ob)
|
||||
|
Reference in New Issue
Block a user