mirror of
https://github.com/godotengine/godot.git
synced 2024-11-26 22:23:04 +00:00
commit
1dad6eca81
@ -3461,12 +3461,18 @@ void Variant::blend(const Variant& a, const Variant& b, float c, Variant &r_dst)
|
||||
const Rect2 *rb = reinterpret_cast<const Rect2*>(b._data._mem);
|
||||
r_dst=Rect2(ra->pos + rb->pos * c, ra->size + rb->size * c);
|
||||
} return;
|
||||
case VECTOR3:{ r_dst=*reinterpret_cast<const Vector2*>(a._data._mem)+*reinterpret_cast<const Vector2*>(b._data._mem)*c; } return;
|
||||
case VECTOR3:{ r_dst=*reinterpret_cast<const Vector3*>(a._data._mem)+*reinterpret_cast<const Vector3*>(b._data._mem)*c; } return;
|
||||
case _AABB:{
|
||||
const AABB *ra = reinterpret_cast<const AABB*>(a._data._mem);
|
||||
const AABB *rb = reinterpret_cast<const AABB*>(b._data._mem);
|
||||
r_dst=AABB(ra->pos + rb->pos * c, ra->size + rb->size * c);
|
||||
} return;
|
||||
case QUAT:{
|
||||
Quat empty_rot;
|
||||
const Quat *qa = reinterpret_cast<const Quat*>(a._data._mem);
|
||||
const Quat *qb = reinterpret_cast<const Quat*>(b._data._mem);
|
||||
r_dst=*qa * empty_rot.slerp(*qb,c);
|
||||
} return;
|
||||
case COLOR:{
|
||||
const Color *ca = reinterpret_cast<const Color*>(a._data._mem);
|
||||
const Color *cb = reinterpret_cast<const Color*>(b._data._mem);
|
||||
|
@ -861,8 +861,9 @@ void AnimationTreePlayer::_process_animation(float p_delta) {
|
||||
|
||||
if (!t.node)
|
||||
continue;
|
||||
//if (E->get()->t.type!=Animation::TYPE_TRANSFORM)
|
||||
// continue;
|
||||
|
||||
if(t.property) // value track; was applied in step 2
|
||||
continue;
|
||||
|
||||
Transform xform;
|
||||
xform.basis=t.rot;
|
||||
|
Loading…
Reference in New Issue
Block a user