mirror of
https://github.com/cocos/cocos4.git
synced 2026-11-21 16:12:40 +08:00
Safe check in dragonbones cleanup.
This commit is contained in:
@@ -420,6 +420,9 @@ bool register_all_dragonbones_manual(se::Object* obj)
|
||||
|
||||
// std::string typeName = typeid(*obj).name();
|
||||
auto cleanup = [=](){
|
||||
if (!se::ScriptEngine::getInstance()->isValid())
|
||||
return;
|
||||
|
||||
se::AutoHandleScope hs;
|
||||
se::ScriptEngine::getInstance()->clearException();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user