From 30f18f139aebb5d73cc10d3ebca7fd5ed0a78fc6 Mon Sep 17 00:00:00 2001 From: wikoreman Date: Thu, 9 Aug 2018 16:34:25 +0200 Subject: [PATCH] Fixed referrence namespace bug with vrproxy loader --- colorbleed/plugins/maya/load/load_vrayproxy.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/colorbleed/plugins/maya/load/load_vrayproxy.py b/colorbleed/plugins/maya/load/load_vrayproxy.py index 87369d5a3c..0773479e30 100644 --- a/colorbleed/plugins/maya/load/load_vrayproxy.py +++ b/colorbleed/plugins/maya/load/load_vrayproxy.py @@ -41,6 +41,9 @@ class VRayProxyLoader(colorbleed.maya.plugin.ReferenceLoader): nodes = self.create_vray_proxy(name) self[:] = nodes + # Make sure to restore the default namespace, or anything imported or + # refereced after this gets added to this namespace + cmds.namespace(set=":") return nodes