Browse Source

Fix exporting unsaved blends

This would only trigger if the blend file both
- is not saved
- has no valid age name
pull/114/head
Adam Johnson 6 years ago
parent
commit
2a3a9c59d2
Signed by: Hoikas
GPG Key ID: 0B6515D6FF6F271E
  1. 2
      korman/operators/op_export.py

2
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"}

Loading…
Cancel
Save