From ab65fe0cfec0f1f049ac86d3eac0e85294bd92e1 Mon Sep 17 00:00:00 2001 From: Greg Wiatroski Date: Tue, 21 Feb 2006 22:25:30 +0000 Subject: [PATCH] fix from asad for the no-lod copy constructor --- direct/src/actor/Actor.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/direct/src/actor/Actor.py b/direct/src/actor/Actor.py index cdd60784e7..8bf6a76b7b 100644 --- a/direct/src/actor/Actor.py +++ b/direct/src/actor/Actor.py @@ -1587,8 +1587,11 @@ class Actor(DirectObject, NodePath): self.__partBundleDict[lodName] = {} self.__updateSortedLODNames() # find the lod :Asad: - partLod = self.find("**/" + lodName) - if (partLod == None): + if lodName == 'lodRoot': + partLod = self + else: + partLod = self.find("**/" + lodName) + if partLod.isEmpty(): Actor.notify.warning("no lod named: %s" % (lodName)) return None for partName in other.__partBundleDict[lodName].keys():