File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
extensions/cocostudio/loader/parsers Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 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 (
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 ) ;
You can’t perform that action at this time.
0 commit comments