From 89a27bdd1dcb7d2d1dcc04e5cdcfcc9ce244855d Mon Sep 17 00:00:00 2001 From: Daniel Peppicelli <daniel.peppicelli@epfl.ch> Date: Wed, 10 Feb 2016 15:06:49 +0100 Subject: [PATCH] [no-story] I had to perform this change to be able to add screens in the scene Change-Id: Ie3f39c9350ad9b3cdacb76c2290a2d403efeede7 --- gz3d/src/gziface.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gz3d/src/gziface.js b/gz3d/src/gziface.js index 48d024c..bba7d18 100644 --- a/gz3d/src/gziface.js +++ b/gz3d/src/gziface.js @@ -1323,7 +1323,7 @@ GZ3D.GZIface.prototype.createGeom = function(geom, material, parent) allChildren[c].receiveShadow = visualObj.receiveShadows; } - if (visualObj.name.indexOf('COLLISION_VISUAL') >= 0) + if (visualObj.name !== undefined && visualObj.name.indexOf('COLLISION_VISUAL') >= 0) { allChildren[c].castShadow = false; allChildren[c].receiveShadow = false; -- GitLab