Browse Source

Spline.makeFromMatrix expect absolute matrix

trethaller 5 years ago
parent
commit
ccef52ac4c
1 changed files with 0 additions and 2 deletions
  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();