Skip to content

Commit 1b6c609

Browse files
committed
Merge pull request #2844 from VisualSJ/develop-particle
Change the parser default value (Button|Label)
2 parents b6a3664 + 7bbe071 commit 1b6c609

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

extensions/cocostudio/loader/parsers/timelineParser-2.x.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -524,7 +524,7 @@
524524
widget.setTextVerticalAlignment(v_alignment);
525525

526526
if(json["OutlineEnabled"] && json["OutlineColor"] && widget.enableOutline)
527-
widget.enableOutline(getColor(json["OutlineColor"]), json["OutlineSize"] || 0);
527+
widget.enableOutline(getColor(json["OutlineColor"]), getParam(json["OutlineSize"], 1));
528528

529529
if(json["ShadowEnabled"] && json["ShadowColor"] && widget.enableShadow)
530530
widget.enableShadow(
@@ -610,7 +610,7 @@
610610
);
611611
}
612612
if(label && json["OutlineEnabled"] && json["OutlineColor"] && label.enableOutline)
613-
label.enableOutline(getColor(json["OutlineColor"]), json["OutlineSize"] || 0);
613+
label.enableOutline(getColor(json["OutlineColor"]), getParam(json["OutlineSize"], 1));
614614

615615
var displaystate = getParam(json["DisplayState"], true);
616616
widget.setBright(displaystate);

0 commit comments

Comments
 (0)