Browse Source

Fix #151.

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

18
korman/exporter/manager.py

@ -136,21 +136,21 @@ 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)
self._pack_agesdl_hook(age)
# Textures.prp
if textures:
self.create_page(age, "Textures", -1, True)
def _create_builtin_pages(self, age):
builtin = self.create_page(age, "BuiltIn", -2, True) builtin = self.create_page(age, "BuiltIn", -2, True)
if want_pysdl:
sdl = self.add_object(plSceneObject, name="AgeSDLHook", loc=builtin) sdl = self.add_object(plSceneObject, name="AgeSDLHook", loc=builtin)
pfm = self.add_object(plPythonFileMod, name="VeryVerySpecialPythonFileMod", so=sdl) pfm = self.add_object(plPythonFileMod, name="VeryVerySpecialPythonFileMod", so=sdl)
pfm.filename = age pfm.filename = age
# Textures.prp
# FIXME: unconditional creation will overwrite any existing textures PRP. This should
# be addressed by a successful implementation of #145.
self.create_page(age, "Textures", -1, True)
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())
location.prefix = bpy.context.scene.world.plasma_age.seq_prefix location.prefix = bpy.context.scene.world.plasma_age.seq_prefix

Loading…
Cancel
Save