From dacf7b57cf15abfad5f5b959b7e258d3be782a1d Mon Sep 17 00:00:00 2001 From: Gyedo Jeon Date: Fri, 29 Jun 2007 18:45:09 +0000 Subject: [PATCH] fixed Mat4() initialization error --- direct/src/directtools/DirectCameraControl.py | 2 +- direct/src/directtools/DirectGeometry.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/direct/src/directtools/DirectCameraControl.py b/direct/src/directtools/DirectCameraControl.py index 084c651a91..9a77de8661 100644 --- a/direct/src/directtools/DirectCameraControl.py +++ b/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() diff --git a/direct/src/directtools/DirectGeometry.py b/direct/src/directtools/DirectGeometry.py index e0d4b5563a..b70429a111 100644 --- a/direct/src/directtools/DirectGeometry.py +++ b/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