aboutsummaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
Diffstat (limited to 'js')
-rwxr-xr-xjs/mediators/element-mediator.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/js/mediators/element-mediator.js b/js/mediators/element-mediator.js
index c153101e..a05ca631 100755
--- a/js/mediators/element-mediator.js
+++ b/js/mediators/element-mediator.js
@@ -29,14 +29,14 @@ exports.ElementMediator = Montage.create(Component, {
29 if(Array.isArray(elements)) { 29 if(Array.isArray(elements)) {
30 elements.forEach(function(element) { 30 elements.forEach(function(element) {
31 ElementController.addElement(element, rules); 31 ElementController.addElement(element, rules);
32 if(element.elementModel && element.elementModel.props3D) {
33 element.elementModel.props3D.init(element, false);
34 }
32 }); 35 });
33 } else { 36 } else {
34 ElementController.addElement(elements, rules); 37 ElementController.addElement(elements, rules);
35 38 if(elements.elementModel && elements.elementModel.props3D) {
36 // TODO - Check with webgl branch - Props seem to be already there. 39 elements.elementModel.props3D.init(elements, false);
37 var prop3d = this.get3DProperties(elements);
38 if(prop3d) {
39 elements.elementModel.controller["set3DProperties"](elements, [prop3d], 0, true);
40 } 40 }
41 } 41 }
42 42