2
0
ncannasse 8 жил өмнө
parent
commit
59bc845f9c

+ 6 - 0
hxd/inspect/SceneProps.hx

@@ -497,6 +497,12 @@ class SceneProps {
 			return;
 		if( node == null )
 			node = root;
+		if( lerp < 0 )
+			lerp = 0;
+		else if( lerp > 1 )
+			lerp = 1;
+		else if( Math.isNaN(lerp) )
+			throw "lerp is NaN";
 		var props = null;
 		for( f in Reflect.fields(propsValues) ) {
 			var v : Dynamic = Reflect.field(propsValues, f);