File tree 1 file changed +6
-9
lines changed
extensions/cocostudio/loader/parsers
1 file changed +6
-9
lines changed Original file line number Diff line number Diff line change 422
422
423
423
}
424
424
425
- var bgStartColor = json [ "FirstColor" ] ;
426
- var bgEndColor = json [ "EndColor" ] ;
427
- if ( bgStartColor != null && bgEndColor != null ) {
428
- var startC = getColor ( bgStartColor ) ;
429
- if ( bgEndColor [ "R" ] == null && bgEndColor [ "G" ] == null && bgEndColor [ "B" ] == null )
430
- widget . setBackGroundColor ( startC ) ;
431
- else
432
- widget . setBackGroundColor ( startC , getColor ( bgEndColor ) ) ;
433
- }
425
+ var firstColor = json [ "FirstColor" ] ;
426
+ var endColor = json [ "EndColor" ] ;
427
+ if ( endColor [ "R" ] != null && endColor [ "G" ] != null && endColor [ "B" ] != null )
428
+ widget . setBackGroundColor ( getColor ( firstColor ) , getColor ( endColor ) ) ;
429
+ else
430
+ widget . setBackGroundColor ( getColor ( json [ "SingleColor" ] ) ) ;
434
431
435
432
var colorVector = json [ "ColorVector" ] ;
436
433
if ( colorVector != null )
You can’t perform that action at this time.
0 commit comments