File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
extensions/cocostudio/loader/parsers Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 260260 handle : function ( options ) {
261261 var frame = new ccs . BlendFuncFrame ( ) ;
262262 var blendFunc = options [ "BlendFunc" ] ;
263- if ( blendFunc )
263+ if ( blendFunc && blendFunc [ "Src" ] !== undefined && blendFunc [ "Dst" ] !== undefined )
264264 frame . setBlendFunc ( new cc . BlendFunc ( blendFunc [ "Src" ] , blendFunc [ "Dst" ] ) ) ;
265265 return frame ;
266266 }
Original file line number Diff line number Diff line change 12921292 node . setDebugDrawLength ( length ) ;
12931293
12941294 var blendFunc = json [ "BlendFunc" ] ;
1295- if ( blendFunc )
1296- node . setBlendFunc ( new cc . BlendFunc ( blendFunc [ "Src" ] || 0 , blendFunc [ "Dst" ] || 0 ) ) ;
1295+ if ( blendFunc && blendFunc [ "Src" ] !== undefined && blendFunc [ "Dst" ] !== undefined )
1296+ node . setBlendFunc ( new cc . BlendFunc ( blendFunc [ "Src" ] , blendFunc [ "Dst" ] ) ) ;
12971297
12981298 parser . generalAttributes ( node , json ) ;
12991299 var color = json [ "CColor" ] ;
You can’t perform that action at this time.
0 commit comments