Skip to content

Commit 793d4c4

Browse files
committed
[MC-2936] Textonpath script doesn't preserve transparency
1 parent 46f9f11 commit 793d4c4

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

SVGRepair.jsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,7 @@ function FixPath(item) {
249249
pathItem.setEntirePath(newGeo);
250250
for (var i = templateFrames.length-1; i>=0; i--) {
251251
var nw = item.parent.textFrames.pathText(pathItem.duplicate(), 0, 0, TextOrientation.HORIZONTAL, templateFrames[i]);
252+
nw.opacity = item.opacity;
252253
}
253254
item.remove();
254255
}

fixtextonpath.jsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ function FixPath(item) {
7777
pathItem.setEntirePath(newGeo);
7878
for (var i = templateFrames.length-1; i>=0; i--) {
7979
var nw = item.parent.textFrames.pathText(pathItem.duplicate(), 0, 0, TextOrientation.HORIZONTAL, templateFrames[i]);
80+
nw.opacity = item.opacity;
8081
}
8182
item.remove();
8283
}

0 commit comments

Comments
 (0)