Skip to content

Commit

Permalink
Fix issue checkMeshChangesFrameChangePre (#162)
Browse files Browse the repository at this point in the history
* Bump version

* Fixed no object selected in checkMeshChangesFrameChangePre

* Bump version
  • Loading branch information
Failxxx authored Jul 19, 2022
1 parent 039ed1f commit 0a1d568
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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": "",
Expand Down
5 changes: 4 additions & 1 deletion src/stop_motion_obj.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")

0 comments on commit 0a1d568

Please sign in to comment.