From ca470a3e120259be1c73099cb9d12805cb654c87 Mon Sep 17 00:00:00 2001 From: Adam Johnson Date: Fri, 10 Jul 2015 22:59:19 -0400 Subject: [PATCH] Fix traceback with shared DCMs --- korman/exporter/material.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/korman/exporter/material.py b/korman/exporter/material.py index 15bb09d..dabea3e 100644 --- a/korman/exporter/material.py +++ b/korman/exporter/material.py @@ -390,8 +390,8 @@ class MaterialConverter: print(" EnvMap for viewpoint {} already exported... NOTE: Your settings here will be overridden by the previous object!".format(viewpt.name)) pl_env_obj = pl_env.object if isinstance(pl_env_obj, plDynamicCamMap): - dcm.addTargetNode(self._mgr.find_key(plSceneObject, bl=bo)) - dcm.addMatLayer(layer.key) + pl_env_obj.addTargetNode(self._mgr.find_key(plSceneObject, bl=bo)) + pl_env_obj.addMatLayer(layer.key) return pl_env # It matters not whether or not the viewpoint object is a Plasma Object, it is exported as at