mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-28 15:53:55 -04:00
Add use of TransformState::make_pos_quat() in some places (#1116)
Fixes #1116
This commit is contained in:
parent
a196f1adcc
commit
18873ffbf1
@ -118,10 +118,9 @@ btTransform LMatrix4_to_btTrans(const LMatrix4 &m) {
|
||||
*/
|
||||
LMatrix4 btTrans_to_LMatrix4(const btTransform &trans) {
|
||||
|
||||
return TransformState::make_pos_quat_scale(
|
||||
return TransformState::make_pos_quat(
|
||||
btVector3_to_LVector3(trans.getOrigin()),
|
||||
btQuat_to_LQuaternion(trans.getRotation()),
|
||||
LVector3(1.0f, 1.0f, 1.0f))->get_mat();
|
||||
btQuat_to_LQuaternion(trans.getRotation()))->get_mat();
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -1035,7 +1035,7 @@ load_light(const aiLight &light) {
|
||||
LPoint3 pos (light.mPosition.x, light.mPosition.y, light.mPosition.z);
|
||||
LQuaternion quat;
|
||||
::look_at(quat, LPoint3(vec.x, vec.y, vec.z), LVector3::up());
|
||||
plight->set_transform(TransformState::make_pos_quat_scale(pos, quat, LVecBase3(1, 1, 1)));
|
||||
plight->set_transform(TransformState::make_pos_quat(pos, quat));
|
||||
break; }
|
||||
|
||||
// This is a somewhat recent addition to Assimp, so let's be kind to those
|
||||
|
Loading…
x
Reference in New Issue
Block a user