File tree 2 files changed +4
-4
lines changed 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -387,7 +387,7 @@ if (cc._renderType === cc._RENDER_TYPE_CANVAS) {
387
387
388
388
var i , particle , lpx , alpha ;
389
389
var particleCount = this . _node . particleCount , particles = this . _node . _particles ;
390
- if ( cc . ParticleSystem . SHAPE_MODE == cc . ParticleSystem . TEXTURE_MODE ) {
390
+ if ( node . drawMode == cc . ParticleSystem . TEXTURE_MODE ) {
391
391
// Delay drawing until the texture is fully loaded by the browser
392
392
if ( ! node . _texture || ! node . _texture . _isLoaded ) {
393
393
context . restore ( ) ;
@@ -448,7 +448,7 @@ if (cc._renderType === cc._RENDER_TYPE_CANVAS) {
448
448
449
449
context . save ( ) ;
450
450
context . translate ( 0 | particle . drawPos . x , - ( 0 | particle . drawPos . y ) ) ;
451
- if ( cc . ParticleSystem . BALL_SHAPE == cc . ParticleSystem . STAR_SHAPE ) {
451
+ if ( node . shapeType == cc . ParticleSystem . STAR_SHAPE ) {
452
452
if ( particle . rotation )
453
453
context . rotate ( cc . degreesToRadians ( particle . rotation ) ) ;
454
454
drawTool . drawStar ( context , lpx , particle . color ) ;
Original file line number Diff line number Diff line change @@ -228,7 +228,7 @@ cc.cutRotateImageToCanvas = function (texture, rect) {
228
228
229
229
cc . _getCompositeOperationByBlendFunc = function ( blendFunc ) {
230
230
if ( ! blendFunc )
231
- return "source" ;
231
+ return "source-over " ;
232
232
else {
233
233
if ( ( blendFunc . src == cc . SRC_ALPHA && blendFunc . dst == cc . ONE ) || ( blendFunc . src == cc . ONE && blendFunc . dst == cc . ONE ) )
234
234
return "lighter" ;
@@ -237,7 +237,7 @@ cc._getCompositeOperationByBlendFunc = function(blendFunc){
237
237
else if ( blendFunc . src == cc . ZERO && blendFunc . dst == cc . ONE_MINUS_SRC_ALPHA )
238
238
return "destination-out" ;
239
239
else
240
- return "source" ;
240
+ return "source-over " ;
241
241
}
242
242
} ;
243
243
You can’t perform that action at this time.
0 commit comments