|
@@ -1260,7 +1260,7 @@ class Actor(DirectObject, NodePath):
|
|
|
frontParts.reparentTo(backPart)
|
|
frontParts.reparentTo(backPart)
|
|
|
|
|
|
|
|
|
|
|
|
|
- def fixBoundsNew(self, partName = None):
|
|
|
|
|
|
|
+ def fixBounds(self, partName = None):
|
|
|
if(partName == None):
|
|
if(partName == None):
|
|
|
#iterate through everything
|
|
#iterate through everything
|
|
|
for lodData in self.__partBundleDict.values():
|
|
for lodData in self.__partBundleDict.values():
|
|
@@ -1279,7 +1279,7 @@ class Actor(DirectObject, NodePath):
|
|
|
else:
|
|
else:
|
|
|
#iterate through for a specific part
|
|
#iterate through for a specific part
|
|
|
for lodData in self.__partBundleDict.values():
|
|
for lodData in self.__partBundleDict.values():
|
|
|
- partData = lodData.get(partName):
|
|
|
|
|
|
|
+ partData = lodData.get(partName)
|
|
|
if(partData):
|
|
if(partData):
|
|
|
char = partData.partBundleNP
|
|
char = partData.partBundleNP
|
|
|
char.node().update()
|
|
char.node().update()
|
|
@@ -1293,7 +1293,7 @@ class Actor(DirectObject, NodePath):
|
|
|
thisGeom.markBoundsStale()
|
|
thisGeom.markBoundsStale()
|
|
|
thisGeomNode.node().markInternalBoundsStale()
|
|
thisGeomNode.node().markInternalBoundsStale()
|
|
|
|
|
|
|
|
- def fixBounds(self, part=None):
|
|
|
|
|
|
|
+ def fixBounds_old(self, part=None):
|
|
|
"""fixBounds(self, nodePath=None)
|
|
"""fixBounds(self, nodePath=None)
|
|
|
Force recomputation of bounding spheres for all geoms
|
|
Force recomputation of bounding spheres for all geoms
|
|
|
in a given part. If no part specified, fix all geoms
|
|
in a given part. If no part specified, fix all geoms
|