From 51830c9ff1f573a52c08dc8c4e3043b16ce19b0a Mon Sep 17 00:00:00 2001 From: Darryl Pogue Date: Wed, 27 Dec 2017 20:47:41 -0800 Subject: [PATCH] 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