Explorar el Código

SplineMesh: fix null access local 3d

lviguier hace 9 meses
padre
commit
94d4532c22
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      hrt/prefab/l3d/SplineMesh.hx

+ 1 - 1
hrt/prefab/l3d/SplineMesh.hx

@@ -131,7 +131,7 @@ class SplineMesh extends hrt.prefab.Object3D {
 
 
 	function computeSplineMesh() {
 	function computeSplineMesh() {
 		var samples = spline.samples;
 		var samples = spline.samples;
-		if ( samples.length < 2 )
+		if ( samples.length < 2 || local3d == null )
 			return;
 			return;
 
 
 		var bounds = new h3d.col.Bounds();
 		var bounds = new h3d.col.Bounds();