aboutsummaryrefslogtreecommitdiff
path: root/js/mediators
diff options
context:
space:
mode:
Diffstat (limited to 'js/mediators')
-rwxr-xr-xjs/mediators/element-mediator.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/js/mediators/element-mediator.js b/js/mediators/element-mediator.js
index eac0ca54..a2440fb4 100755
--- a/js/mediators/element-mediator.js
+++ b/js/mediators/element-mediator.js
@@ -673,17 +673,17 @@ exports.ElementMediator = Montage.create(NJComponent, {
673 }, 673 },
674 674
675 setMatrix: { 675 setMatrix: {
676 value: function(el, mat, isChanging) { 676 value: function(el, mat, isChanging, source) {
677 var dist = el.elementModel.controller["getPerspectiveDist"](el); 677 var dist = el.elementModel.controller["getPerspectiveDist"](el);
678 el.elementModel.controller["set3DProperties"](el, [{mat:mat, dist:dist}], 0, !isChanging); 678 el.elementModel.controller["set3DProperties"](el, [{mat:mat, dist:dist}], 0, !isChanging);
679 679
680 if(isChanging) 680 if(isChanging)
681 { 681 {
682 NJevent("elementChanging", {type : "setMatrix", source: null, data: {"els": [el], "prop": "matrix", "value": mat}, redraw: null}); 682 NJevent("elementChanging", {type : "setMatrix", source: source, data: {"els": [el], "prop": "matrix", "value": mat}, redraw: null});
683 } 683 }
684 else 684 else
685 { 685 {
686 NJevent("elementChange", {type : "setMatrix", source: null, data: {"els": [el], "prop": "matrix", "value": mat}, redraw: null}); 686 NJevent("elementChange", {type : "setMatrix", source: source, data: {"els": [el], "prop": "matrix", "value": mat}, redraw: null});
687 } 687 }
688 } 688 }
689 }, 689 },