diff --git a/korman/exporter/convert.py b/korman/exporter/convert.py index 94e8f96..a657cec 100644 --- a/korman/exporter/convert.py +++ b/korman/exporter/convert.py @@ -127,7 +127,7 @@ class Exporter: for page in age_info.pages: if page.enabled: mgr.create_page(age_name, page.name, page.seq_suffix) - mgr.create_builtins(age_name, self._op.use_texture_page) + mgr.create_builtins(age_name, age_info.use_texture_page) def _export_actor(self, so, bo): """Exports a Coordinate Interface if we need one""" diff --git a/korman/operators/op_export.py b/korman/operators/op_export.py index ae2e1bc..2e845e3 100644 --- a/korman/operators/op_export.py +++ b/korman/operators/op_export.py @@ -47,10 +47,6 @@ class ExportOperator(bpy.types.Operator): "items": [("pvPrime", "Ages Beyond Myst (63.11)", "Targets the original Uru (Live) game", 2), ("pvPots", "Path of the Shell (63.12)", "Targets the most recent offline expansion pack", 1), ("pvMoul", "Myst Online: Uru Live (70)", "Targets the most recent online game", 0)]}), - - "use_texture_page": (BoolProperty, {"name": "Use Textures Page", - "description": "Exports all textures to a dedicated Textures page", - "default": True}), } # This wigs out and very bad things happen if it's not directly on the operator... @@ -63,7 +59,6 @@ class ExportOperator(bpy.types.Operator): # The crazy mess we're doing with props on the fly means we have to explicitly draw them :( layout.prop(age, "version") layout.prop(age, "regenerate_lightmaps") - layout.prop(age, "use_texture_page") layout.prop(age, "profile_export") def __getattr__(self, attr): diff --git a/korman/properties/prop_world.py b/korman/properties/prop_world.py index 0bc91b9..badba65 100644 --- a/korman/properties/prop_world.py +++ b/korman/properties/prop_world.py @@ -155,6 +155,9 @@ class PlasmaAge(bpy.types.PropertyGroup): age_sdl = BoolProperty(name="Age Global SDL", description="This age has its own SDL file", default=False) + use_texture_page = BoolProperty(name="Use Textures Page", + description="Exports all textures to a dedicated Textures page", + default=True) # Implementation details active_page_index = IntProperty(name="Active Page Index") diff --git a/korman/ui/ui_world.py b/korman/ui/ui_world.py index 44880d2..3b51392 100644 --- a/korman/ui/ui_world.py +++ b/korman/ui/ui_world.py @@ -78,6 +78,7 @@ class PlasmaAgePanel(AgeButtonsPanel, bpy.types.Panel): col.label("Age Settings:") col.prop(age, "seq_prefix", text="ID") col.prop(age, "age_sdl") + col.prop(age, "use_texture_page") class PlasmaEnvironmentPanel(AgeButtonsPanel, bpy.types.Panel):