diff --git a/src/__init__.py b/src/__init__.py index a5f7b5a..48b7a97 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.24"), + "version": (2, 2, 0, "alpha.25"), "blender": (2, 83, 0), "location": "File > Import > Mesh Sequence", "warning": "", diff --git a/src/panels.py b/src/panels.py index 44a646f..982268f 100644 --- a/src/panels.py +++ b/src/panels.py @@ -106,7 +106,8 @@ class SMO_PT_MeshSequenceExportPanel(bpy.types.Panel): @classmethod def poll(cls, context): - return context.object.mesh_sequence_settings.initialized == True + mss = context.object.mesh_sequence_settings + return mss.initialized == True and mss.isImported == True def draw(self, context): layout = self.layout @@ -120,12 +121,14 @@ def draw(self, context): row.enabled = inObjectMode or inSculptMode row.prop(objSettings, "autoExportChanges") + exportEnabled = objSettings.autoExportChanges + row = layout.row() - row.enabled = inObjectMode or inSculptMode + row.enabled = (inObjectMode or inSculptMode) and exportEnabled row.prop(objSettings, "overwriteSrcDir") row = layout.row() - row.enabled = (inObjectMode or inSculptMode) and objSettings.overwriteSrcDir is False + row.enabled = (inObjectMode or inSculptMode) and objSettings.overwriteSrcDir is False and exportEnabled row.alert = objSettings.exportDir == '' and objSettings.overwriteSrcDir is False row.prop(objSettings, "exportDir") diff --git a/src/version.py b/src/version.py index 8eb3e08..6b5fdac 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.24") +currentScriptVersion = (2, 2, 0, "alpha.25") legacyScriptVersion = (2, 0, 2, "legacy")