|
@@ -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();
|