diff --git a/player/js/elements/helpers/TransformElement.js b/player/js/elements/helpers/TransformElement.js index bc270235d..cd733c39e 100644 --- a/player/js/elements/helpers/TransformElement.js +++ b/player/js/elements/helpers/TransformElement.js @@ -53,7 +53,7 @@ TransformElement.prototype = { } } } - if (this.finalTransform._matMdf) { + if (!this.localTransforms || this.finalTransform._matMdf) { this.finalTransform._localMatMdf = this.finalTransform._matMdf; } if (this.finalTransform._opMdf) { diff --git a/player/js/elements/svgElements/SVGShapeElement.js b/player/js/elements/svgElements/SVGShapeElement.js index d71d17c43..a04c20a34 100644 --- a/player/js/elements/svgElements/SVGShapeElement.js +++ b/player/js/elements/svgElements/SVGShapeElement.js @@ -211,7 +211,7 @@ SVGShapeElement.prototype.setElementStyles = function (elementData) { var j; var jLen = this.stylesList.length; for (j = 0; j < jLen; j += 1) { - if (!this.stylesList[j].closed) { + if (arr.indexOf(this.stylesList[j]) === -1 && !this.stylesList[j].closed) { arr.push(this.stylesList[j]); } }