Only stop live patch session if live patch was active

This commit is contained in:
Moritz Brückner 2021-07-25 17:07:51 +02:00
parent ffee6dc521
commit 8a758bbe26

View file

@ -44,10 +44,11 @@ def start():
def stop():
"""Stop the live patch session."""
global __running
__running = False
if __running:
__running = False
log.debug("Live patch session stopped")
bpy.msgbus.clear_by_owner(msgbus_owner)
log.debug("Live patch session stopped")
bpy.msgbus.clear_by_owner(msgbus_owner)
def patch_export():