|
@@ -438,7 +438,7 @@ double AnimationNodeBlendSpace2D::process(double p_time, bool p_seek) {
|
|
Vector2 blend_pos = get_parameter(blend_position);
|
|
Vector2 blend_pos = get_parameter(blend_position);
|
|
int closest = get_parameter(this->closest);
|
|
int closest = get_parameter(this->closest);
|
|
double length_internal = get_parameter(this->length_internal);
|
|
double length_internal = get_parameter(this->length_internal);
|
|
- float mind = 0.0; //time of min distance point
|
|
|
|
|
|
+ double mind = 0.0; //time of min distance point
|
|
|
|
|
|
if (blend_mode == BLEND_MODE_INTERPOLATED) {
|
|
if (blend_mode == BLEND_MODE_INTERPOLATED) {
|
|
if (triangles.size() == 0) {
|
|
if (triangles.size() == 0) {
|
|
@@ -502,7 +502,7 @@ double AnimationNodeBlendSpace2D::process(double p_time, bool p_seek) {
|
|
for (int j = 0; j < 3; j++) {
|
|
for (int j = 0; j < 3; j++) {
|
|
if (i == triangle_points[j]) {
|
|
if (i == triangle_points[j]) {
|
|
//blend with the given weight
|
|
//blend with the given weight
|
|
- float t = blend_node(blend_points[i].name, blend_points[i].node, p_time, p_seek, blend_weights[j], FILTER_IGNORE, false);
|
|
|
|
|
|
+ double t = blend_node(blend_points[i].name, blend_points[i].node, p_time, p_seek, blend_weights[j], FILTER_IGNORE, false);
|
|
if (first || t < mind) {
|
|
if (first || t < mind) {
|
|
mind = t;
|
|
mind = t;
|
|
first = false;
|
|
first = false;
|
|
@@ -530,7 +530,7 @@ double AnimationNodeBlendSpace2D::process(double p_time, bool p_seek) {
|
|
}
|
|
}
|
|
|
|
|
|
if (new_closest != closest && new_closest != -1) {
|
|
if (new_closest != closest && new_closest != -1) {
|
|
- float from = 0.0;
|
|
|
|
|
|
+ double from = 0.0;
|
|
if (blend_mode == BLEND_MODE_DISCRETE_CARRY && closest != -1) {
|
|
if (blend_mode == BLEND_MODE_DISCRETE_CARRY && closest != -1) {
|
|
//for ping-pong loop
|
|
//for ping-pong loop
|
|
Ref<AnimationNodeAnimation> na_c = static_cast<Ref<AnimationNodeAnimation>>(blend_points[closest].node);
|
|
Ref<AnimationNodeAnimation> na_c = static_cast<Ref<AnimationNodeAnimation>>(blend_points[closest].node);
|