Ver código fonte

fixed Mat4() initialization error

Gyedo Jeon 18 anos atrás
pai
commit
dacf7b57cf

+ 1 - 1
direct/src/directtools/DirectCameraControl.py

@@ -476,7 +476,7 @@ class DirectCameraControl(DirectObject):
         # Record undo point
         base.direct.pushUndo([base.direct.camera])
         # Transform camera z axis to render space
-        mCam2Render = Mat4()
+        mCam2Render = Mat4(Mat4.identMat()) # [gjeon] fixed to give required argument
         mCam2Render.assign(base.direct.camera.getMat(render))
         zAxis = Vec3(mCam2Render.xformVec(Z_AXIS))
         zAxis.normalize()

+ 1 - 1
direct/src/directtools/DirectGeometry.py

@@ -170,7 +170,7 @@ def relHpr(nodePath, base, h, p, r):
     # nodePath2base
     mNodePath2Base = nodePath.getMat(base)
     # delta scale, orientation, and position matrix
-    mBase2NewBase = Mat4()
+    mBase2NewBase = Mat4(Mat4.identMat()) # [gjeon] fixed to give required argument
     composeMatrix(mBase2NewBase, UNIT_VEC, VBase3(h, p, r), ZERO_VEC,
                   CSDefault)
     # base2nodePath