fixed Mat4() initialization error

This commit is contained in:
Gyedo Jeon 2007-06-29 18:45:09 +00:00
parent ab34a7c656
commit dacf7b57cf
2 changed files with 2 additions and 2 deletions

View File

@ -476,7 +476,7 @@ class DirectCameraControl(DirectObject):
# Record undo point # Record undo point
base.direct.pushUndo([base.direct.camera]) base.direct.pushUndo([base.direct.camera])
# Transform camera z axis to render space # 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)) mCam2Render.assign(base.direct.camera.getMat(render))
zAxis = Vec3(mCam2Render.xformVec(Z_AXIS)) zAxis = Vec3(mCam2Render.xformVec(Z_AXIS))
zAxis.normalize() zAxis.normalize()

View File

@ -170,7 +170,7 @@ def relHpr(nodePath, base, h, p, r):
# nodePath2base # nodePath2base
mNodePath2Base = nodePath.getMat(base) mNodePath2Base = nodePath.getMat(base)
# delta scale, orientation, and position matrix # 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, composeMatrix(mBase2NewBase, UNIT_VEC, VBase3(h, p, r), ZERO_VEC,
CSDefault) CSDefault)
# base2nodePath # base2nodePath