Browse Source

Fix #154.

pull/161/head
Adam Johnson 5 years ago
parent
commit
5183adb469
Signed by: Hoikas
GPG Key ID: 0B6515D6FF6F271E
  1. 8
      korman/exporter/manager.py

8
korman/exporter/manager.py

@ -283,11 +283,11 @@ class ExportManager:
# AgeSDL # AgeSDL
sdl_filename = "{}.sdl".format(fixed_agename) sdl_filename = "{}.sdl".format(fixed_agename)
age_sdl = get_text(sdl_filename) age_sdl = get_text(sdl_filename)
if age_sdl is not None: if age_sdl is None:
sdl_code = None
else:
sdl_code = very_very_special_sdl.format(age_name=fixed_agename).lstrip() sdl_code = very_very_special_sdl.format(age_name=fixed_agename).lstrip()
output.add_sdl(sdl_filename, text_id=age_sdl, str_data=sdl_code) age_sdl = bpy.data.texts.new(sdl_filename)
age_sdl.from_string(sdl_code)
output.add_sdl(sdl_filename, text_id=age_sdl)
def save_age(self): def save_age(self):
self._write_age() self._write_age()

Loading…
Cancel
Save