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