Skip to content

Uncaught TypeError: Cannot read property 'src' of undefined (CCSprite.js:603) #3156

@raksa

Description

@raksa

Uncaught TypeError: Cannot read property 'src' of undefined
/frameworks/cocos2d-html5/cocos2d/core/sprites/CCSprite.js:603

600:setBlendFunc: function (src, dst) {
601:        var locBlendFunc = this._blendFunc;
602:        if (dst === undefined) {
603:            locBlendFunc.src = src.src;
604:            locBlendFunc.dst = src.dst;
605:        } else {
606:            locBlendFunc.src = src;
607:            locBlendFunc.dst = dst;
608:        }
609:        this._renderCmd.updateBlendFunc(locBlendFunc);
610:    },

it happens when i load data from json node, and in node (made with cocosStudio) i make spritesheet animation in timeline by adding new frame and change image.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions