mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-01 01:07:51 -04:00
Tiny cleanup with Bullet/SceneGraph sync.
This commit is contained in:
parent
0f22583ba5
commit
5249e8ba4b
@ -549,10 +549,11 @@ sync_b2p(PandaNode *node) {
|
||||
if (!_dirty) return;
|
||||
|
||||
NodePath np = NodePath::any_path(node);
|
||||
CPT(TransformState) ts = btTrans_to_TransformState(_trans, _scale);
|
||||
LPoint3 p = btVector3_to_LPoint3(_trans.getOrigin());
|
||||
LQuaternion q = btQuat_to_LQuaternion(_trans.getRotation());
|
||||
|
||||
_disabled = true;
|
||||
np.set_transform(NodePath(), ts);
|
||||
np.set_pos_quat(NodePath(), p, q);
|
||||
_disabled = false;
|
||||
_dirty = false;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user