From 2a3a9c59d2899a0436f00f12495a3949b1088142 Mon Sep 17 00:00:00 2001 From: Adam Johnson Date: Sat, 25 Aug 2018 12:45:40 -0400 Subject: [PATCH] Fix exporting unsaved blends This would only trigger if the blend file both - is not saved - has no valid age name --- korman/operators/op_export.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/korman/operators/op_export.py b/korman/operators/op_export.py index 7ddf6d6..40d59aa 100644 --- a/korman/operators/op_export.py +++ b/korman/operators/op_export.py @@ -132,6 +132,8 @@ class ExportOperator(bpy.types.Operator): blend_filepath = context.blend_data.filepath if not blend_filepath: blend_filepath = context.scene.world.plasma_age.age_name + if not blend_filepath: + blend_filepath = "Korman" self.filepath = str(Path(blend_filepath).with_suffix(".age")) context.window_manager.fileselect_add(self) return {"RUNNING_MODAL"}