Browse Source

Spline.makeFromMatrix expect absolute matrix

trethaller 5 năm trước cách đây
mục cha
commit
ccef52ac4c
1 tập tin đã thay đổi với 0 bổ sung2 xóa
  1. 0 2
      hrt/prefab/l3d/Spline.hx

+ 0 - 2
hrt/prefab/l3d/Spline.hx

@@ -133,12 +133,10 @@ class Spline extends Object3D {
 
 	// Generate the splineData from a matrix, can't move the spline after that
 	public function makeFromMatrix( m : h3d.Matrix ) {
-		var splineTransform = getTransform();
 		var tmp = new h3d.Matrix();
 		for( pd in pointsData ) {
 			var sp = new SplinePoint(0, 0, 0, null);
 			tmp.load(pd);
-			tmp.multiply(tmp, splineTransform);
 			tmp.multiply(tmp, m);
 			sp.setTransform(tmp);
 			sp.getAbsPos();