Skip to content

Commit

Permalink
Merge pull request #218 from MozillaReality/memory-leaks-fix
Browse files Browse the repository at this point in the history
Return FINISHED instead of RUNNING_MODAL for popups
  • Loading branch information
keianhzo authored Jun 5, 2023
2 parents 647f5f6 + 2e47032 commit fd360a0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -700,7 +700,7 @@ def draw(self, context):
op.mismatched_probe_indexes = ''

bpy.context.window_manager.popup_menu(draw)
return {'RUNNING_MODAL'}
return {'FINISHED'}


class ReflectionProbe(HubsComponent):
Expand Down
2 changes: 1 addition & 1 deletion addons/io_hubs_addon/components/operators.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ def draw(self, context):

bpy.context.window_manager.popup_menu(draw)

return {'RUNNING_MODAL'}
return {'FINISHED'}


class RemoveHubsComponent(Operator):
Expand Down

0 comments on commit fd360a0

Please sign in to comment.