Skip to content

Commit

Permalink
Update sv_3dview_tools.py
Browse files Browse the repository at this point in the history
  • Loading branch information
nortikin authored Sep 6, 2024
1 parent 27653dc commit 9287abf
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions utils/sv_3dview_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,10 +91,8 @@ def sv_execute(self, context, node):

for area in bpy.context.screen.areas:
if area.type == 'VIEW_3D':
ctx = bpy.context.copy()
ctx['area'] = area
ctx['region'] = area.regions[-1]
bpy.ops.view3d.view_center_cursor(ctx)
with context.temp_override(area = area , region = area.regions[-1]):
bpy.ops.view3d.view_center_cursor()


classes = [Sv3DviewAlign,]
Expand Down

0 comments on commit 9287abf

Please sign in to comment.