diff --git a/src/__init__.py b/src/__init__.py index fadfa05..0228cb3 100644 --- a/src/__init__.py +++ b/src/__init__.py @@ -25,7 +25,7 @@ "name": "Stop motion OBJ", "description": "Import a sequence of OBJ (or STL or PLY or X3D) files and display them each as a single frame of animation. This add-on also supports the .STL, .PLY, and .X3D file formats.", "author": "Justin Jensen", - "version": (2, 2, 0, "alpha.22"), + "version": (2, 2, 0, "alpha.23"), "blender": (2, 83, 0), "location": "File > Import > Mesh Sequence", "warning": "", diff --git a/src/stop_motion_obj.py b/src/stop_motion_obj.py index 093f310..242f26a 100644 --- a/src/stop_motion_obj.py +++ b/src/stop_motion_obj.py @@ -56,8 +56,11 @@ def checkMeshChangesFrameChangePre(scene): global inRenderMode if inRenderMode == True: return - + obj = bpy.context.object + # make sure an object is selected + if obj is None: + return # if the selected object is not a loaded and initialized mesh sequence, return mss = obj.mesh_sequence_settings diff --git a/src/version.py b/src/version.py index 7bf3674..ca3e38d 100644 --- a/src/version.py +++ b/src/version.py @@ -2,5 +2,5 @@ # (major, minor, revision, development) # example dev version: (1, 2, 3, "beta.4") # example release version: (2, 3, 4) -currentScriptVersion = (2, 2, 0, "alpha.22") +currentScriptVersion = (2, 2, 0, "alpha.23") legacyScriptVersion = (2, 0, 2, "legacy")