Browse Source

we started initializing matrices; so changed code to follow the matrix consturcts

Asad M. Zaman 19 years ago
parent
commit
49a62d6a3b
1 changed files with 1 additions and 2 deletions
  1. 1 2
      direct/src/directtools/DirectSelection.py

+ 1 - 2
direct/src/directtools/DirectSelection.py

@@ -260,8 +260,7 @@ class DirectBoundingBox:
     def computeTightBounds(self):
     def computeTightBounds(self):
         # Compute bounding box using tighter calcTightBounds function
         # Compute bounding box using tighter calcTightBounds function
         # Need to clear out existing transform on node path
         # Need to clear out existing transform on node path
-        tMat = Mat4()
-        tMat.assign(self.nodePath.getMat())
+        tMat = Mat4(self.nodePath.getMat())
         self.nodePath.clearMat()
         self.nodePath.clearMat()
         # Get bounds
         # Get bounds
         self.min = Point3(0)
         self.min = Point3(0)