Browse Source

Merge pull request #89 from dpogue/dem-fixes

DynaEnvMap fixes
pull/85/head
Adam Johnson 7 years ago committed by GitHub
parent
commit
be223901de
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      korman/exporter/material.py
  2. 6
      korman/ui/ui_texture.py

4
korman/exporter/material.py

@ -530,6 +530,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

6
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"

Loading…
Cancel
Save