Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix change to edit prefab and back, will throw error #4008

Merged

Conversation

Projects
None yet
2 participants
@sunnylanwanjun
Copy link
Contributor

commented Mar 12, 2019

论坛:https://forum.cocos.com/t/2-0-9-prefab/74662/22
修复如果场景中有dragonbones,此时去编辑prefab,然后关闭prefab,回到场景,会报_material为空的问题。
因为回到场景只会反序列化,不会再调用场景中节点的构造函数,而此时_material已为空,没有重新创建,所以报错了。

@pandamicro pandamicro merged commit a9e8179 into cocos-creator:v2.0-release Mar 12, 2019

1 check passed

ci/circleci: test Your tests passed on CircleCI!
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.