diff options
Diffstat (limited to 'js/mediators/element-mediator.js')
-rwxr-xr-x | js/mediators/element-mediator.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/js/mediators/element-mediator.js b/js/mediators/element-mediator.js index 3a9055e8..05e5093b 100755 --- a/js/mediators/element-mediator.js +++ b/js/mediators/element-mediator.js | |||
@@ -605,14 +605,14 @@ exports.ElementMediator = Montage.create(Component, { | |||
605 | }, | 605 | }, |
606 | 606 | ||
607 | setMatrix: { | 607 | setMatrix: { |
608 | value: function(el, mat, isChanging) { | 608 | value: function(el, mat, isChanging, source) { |
609 | var dist = el.elementModel.controller["getPerspectiveDist"](el); | 609 | var dist = el.elementModel.controller["getPerspectiveDist"](el); |
610 | el.elementModel.controller["set3DProperties"](el, [{mat:mat, dist:dist}], 0, !isChanging); | 610 | el.elementModel.controller["set3DProperties"](el, [{mat:mat, dist:dist}], 0, !isChanging); |
611 | 611 | ||
612 | if(isChanging) { | 612 | if(isChanging) { |
613 | NJevent("elementChanging", {type : "setMatrix", source: null, data: {"els": [el], "prop": "matrix", "value": mat}, redraw: null}); | 613 | NJevent("elementChanging", {type : "setMatrix", source: source, data: {"els": [el], "prop": "matrix", "value": mat}, redraw: null}); |
614 | } else { | 614 | } else { |
615 | NJevent("elementChange", {type : "setMatrix", source: null, data: {"els": [el], "prop": "matrix", "value": mat}, redraw: null}); | 615 | NJevent("elementChange", {type : "setMatrix", source: source, data: {"els": [el], "prop": "matrix", "value": mat}, redraw: null}); |
616 | } | 616 | } |
617 | } | 617 | } |
618 | }, | 618 | }, |