mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 02:15:43 -04:00
fixed Mat4() initialization error
This commit is contained in:
parent
ab34a7c656
commit
dacf7b57cf
@ -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()
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user