Corrected event listener for canCastShadow - still bad.

This commit is contained in:
Nissim Hadar 2018-02-14 19:12:24 -08:00
parent ef771b6db4
commit 12f4b8dbb1

View file

@ -1392,12 +1392,8 @@ function loaded() {
elShape.addEventListener('change', createEmitTextPropertyUpdateFunction('shape'));
if (properties.type === "Model" ||
properties.type === "Shape" || properties.type === "Box" || properties.type === "Sphere") {
elCanCastShadow.addEventListener('change', createEmitTextPropertyUpdateFunction('canCastShadow'));
}
elCanCastShadow.addEventListener('change', createEmitCheckedPropertyUpdateFunction('canCastShadow'));
elImageURL.addEventListener('change', createImageURLUpdateFunction('textures'));
elWebSourceURL.addEventListener('change', createEmitTextPropertyUpdateFunction('sourceUrl'));