From 51830c9ff1f573a52c08dc8c4e3043b16ce19b0a Mon Sep 17 00:00:00 2001 From: Darryl Pogue Date: Wed, 27 Dec 2017 20:47:41 -0800 Subject: [PATCH 1/2] Also export the rootNode for DynaEnvMaps --- korman/exporter/material.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/korman/exporter/material.py b/korman/exporter/material.py index 6c269fc..066bdcf 100644 --- a/korman/exporter/material.py +++ b/korman/exporter/material.py @@ -518,6 +518,10 @@ class MaterialConverter: # will probably want to steal it for diabolical purposes... pl_env.position = hsVector3(*viewpt.location) + # We'll also export it as a Root though, where supported (MOUL) + root = self._mgr.find_create_key(plSceneObject, bl=viewpt) + pl_env.rootNode = root + if layer is not None: layer.UVWSrc = plLayerInterface.kUVWReflect layer.state.miscFlags |= hsGMatState.kMiscUseReflectionXform From 2a9ecba3def739f334ab67538b6043b594582601 Mon Sep 17 00:00:00 2001 From: Darryl Pogue Date: Wed, 27 Dec 2017 20:48:13 -0800 Subject: [PATCH 2/2] Reorder DEM properties to fix vanishing color prop Not sure why this was happening, but if you got into a state where no VisRegion was selected, the Environment Clear Color property would also disappear. Reordered to put the Clear Color at the top, so that it works consistently and also makes it more obvious that it's unrelated to the visibility regions. --- korman/ui/ui_texture.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/korman/ui/ui_texture.py b/korman/ui/ui_texture.py index ba706de..2bc3d7a 100644 --- a/korman/ui/ui_texture.py +++ b/korman/ui/ui_texture.py @@ -38,6 +38,9 @@ class PlasmaEnvMapPanel(TextureButtonsPanel, bpy.types.Panel): layer_props = context.texture.plasma_layer layout = self.layout + layout.prop(layer_props, "envmap_color") + layout.separator() + layout.label("Visibility Sets:") row = layout.row() row.template_list("VisRegionListUI", "vis_regions", layer_props, "vis_regions", layer_props, "active_region_index", @@ -54,9 +57,6 @@ class PlasmaEnvMapPanel(TextureButtonsPanel, bpy.types.Panel): if layer_props.vis_regions: layout.prop(rgns[layer_props.active_region_index], "control_region") - layout.separator() - layout.prop(layer_props, "envmap_color") - class PlasmaLayerPanel(TextureButtonsPanel, bpy.types.Panel): bl_label = "Plasma Layer Options"