From bdced829349172c89a12606da9d69efd56971da0 Mon Sep 17 00:00:00 2001 From: Adam Johnson Date: Tue, 26 Nov 2019 22:17:17 -0500 Subject: [PATCH] Fix two nasty GOTCHAs with DynamicEnvMaps. --- korman/exporter/material.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/korman/exporter/material.py b/korman/exporter/material.py index a2e29bf..7304b4b 100644 --- a/korman/exporter/material.py +++ b/korman/exporter/material.py @@ -617,13 +617,11 @@ class MaterialConverter: bl_env.id_data.name, viewpt.name, indent=5) # DEMs can do just a position vector. We actually prefer this because the WaveSet exporter - # will probably want to steal it for diabolical purposes... + # will probably want to steal it for diabolical purposes... In MOUL, root objects are + # allowed, but that introduces a gotcha with regard to animated roots and PotS. Also, + # sharing root objects with a DCM seems to result in bad problems in game O.o 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