Browse Source

Avoid writing out blank BuiltIn PRPs for MOUL.

pull/381/head
Adam Johnson 1 year ago
parent
commit
9731b2276b
  1. 13
      korman/exporter/manager.py

13
korman/exporter/manager.py

@ -151,12 +151,13 @@ class ExportManager:
# present and valid. They do not have to have any contents. See AvatarCustomization. # present and valid. They do not have to have any contents. See AvatarCustomization.
# BuiltIn.prp # BuiltIn.prp
want_pysdl = bpy.context.scene.world.plasma_age.age_sdl want_pysdl = bpy.context.scene.world.plasma_age.age_sdl
builtin = self.create_page(age, "BuiltIn", -2, builtin=True) if self.getVer() <= pvPots or want_pysdl:
if want_pysdl: builtin = self.create_page(age, "BuiltIn", -2, builtin=True)
self._pack_agesdl_hook(age) if want_pysdl:
sdl = self.add_object(plSceneObject, name="AgeSDLHook", loc=builtin) self._pack_agesdl_hook(age)
pfm = self.add_object(plPythonFileMod, name="VeryVerySpecialPythonFileMod", so=sdl) sdl = self.add_object(plSceneObject, name="AgeSDLHook", loc=builtin)
pfm.filename = replace_python2_identifier(age) pfm = self.add_object(plPythonFileMod, name="VeryVerySpecialPythonFileMod", so=sdl)
pfm.filename = replace_python2_identifier(age)
# Textures.prp # Textures.prp
# TODO: #145 load any already existing Textures PRP and resave it. # TODO: #145 load any already existing Textures PRP and resave it.

Loading…
Cancel
Save