From 0f4503f1fd88fac3cc36985f8f45701f4e33f0c7 Mon Sep 17 00:00:00 2001 From: Florian Pommerening Date: Sun, 9 May 2021 15:42:03 +0200 Subject: [PATCH] Rename addin to addIn --- FingerJoints.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/FingerJoints.py b/FingerJoints.py index 86422dd..24ef0f2 100644 --- a/FingerJoints.py +++ b/FingerJoints.py @@ -18,7 +18,7 @@ from . import geometry # Global variable to hold the add-in (created in run(), destroyed in stop()) -addin = None +addIn = None class FingerJointCommand(commands.RunningCommandBase): @@ -74,17 +74,17 @@ def stop(self): def run(context): - global addin + global addIn try: - if addin is not None: + if addIn is not None: stop({'IsApplicationClosing': False}) - addin = FingerJointAddIn() - addin.start() + addIn = FingerJointAddIn() + addIn.start() except: ui.reportError('Uncaught exception', True) def stop(context): - global addin - addin.stop() - addin = None + global addIn + addIn.stop() + addIn = None