浏览代码

Changed 'scale' to 'scale_basis' in 'interpolate_with'.

James McLean 10 年之前
父节点
当前提交
c2181285eb
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      core/math/math_2d.cpp

+ 1 - 1
core/math/math_2d.cpp

@@ -655,7 +655,7 @@ Matrix32 Matrix32::interpolate_with(const Matrix32& p_transform, float p_c) cons
 	
 	//construct matrix
 	Matrix32 res(Math::atan2(v.y, v.x), Vector2::linear_interpolate(p1, p2, p_c));
-	res.scale(Vector2::linear_interpolate(s1, s2, p_c));
+	res.scale_basis(Vector2::linear_interpolate(s1, s2, p_c));
 	return res;
 }