Browse Source

Fix #151.

pull/152/head
Adam Johnson 5 years ago
parent
commit
173805a7ba
Signed by: Hoikas
GPG Key ID: 0B6515D6FF6F271E
  1. 22
      korman/exporter/manager.py

22
korman/exporter/manager.py

@ -136,20 +136,20 @@ class ExportManager:
return pl return pl
def create_builtins(self, age, textures): def create_builtins(self, age, textures):
# WARNING: Path of the Shell expects for all builtin pages to be at bare minimum
# present and valid. They do not have to have any contents. See AvatarCustomization.
# BuiltIn.prp # BuiltIn.prp
if bpy.context.scene.world.plasma_age.age_sdl: want_pysdl = bpy.context.scene.world.plasma_age.age_sdl
self._create_builtin_pages(age) builtin = self.create_page(age, "BuiltIn", -2, True)
self._pack_agesdl_hook(age) if want_pysdl:
sdl = self.add_object(plSceneObject, name="AgeSDLHook", loc=builtin)
pfm = self.add_object(plPythonFileMod, name="VeryVerySpecialPythonFileMod", so=sdl)
pfm.filename = age
# Textures.prp # Textures.prp
if textures: # FIXME: unconditional creation will overwrite any existing textures PRP. This should
self.create_page(age, "Textures", -1, True) # be addressed by a successful implementation of #145.
self.create_page(age, "Textures", -1, True)
def _create_builtin_pages(self, age):
builtin = self.create_page(age, "BuiltIn", -2, True)
sdl = self.add_object(plSceneObject, name="AgeSDLHook", loc=builtin)
pfm = self.add_object(plPythonFileMod, name="VeryVerySpecialPythonFileMod", so=sdl)
pfm.filename = age
def create_page(self, age, name, id, builtin=False): def create_page(self, age, name, id, builtin=False):
location = plLocation(self.mgr.getVer()) location = plLocation(self.mgr.getVer())

Loading…
Cancel
Save