io_scene_3ds: Added cursor location #104797

Merged
Sebastian Sille merged 50 commits from :main into main 2023-07-30 02:31:35 +02:00
1 changed files with 2 additions and 1 deletions
Showing only changes of commit b9ce912182 - Show all commits

View File

@ -98,7 +98,8 @@ else:
addon_prefs = context.preferences.addons[__package__].preferences
if addon_prefs.show_overlays and sun_props.show_north:
_north_handle = bpy.types.SpaceView3D.draw_handler_add(north_draw, (), 'WINDOW', 'POST_VIEW')
if _north_handle is None:
_north_handle = bpy.types.SpaceView3D.draw_handler_add(north_draw, (), 'WINDOW', 'POST_VIEW')
elif _north_handle is not None:
bpy.types.SpaceView3D.draw_handler_remove(_north_handle, 'WINDOW')
_north_handle = None