Fix install scene plugin #5765

This commit is contained in:
xiamidaxia 2021-06-30 17:29:25 +08:00
parent 8373e6f81a
commit 9d2374c4a5

View file

@ -369,7 +369,8 @@ var PluginManager = new Class({
{
// Plugin is freshly loaded
PluginCache.register(key, plugin, mapping, true);
}
if (this.scenePlugins.indexOf(key) === -1) {
this.scenePlugins.push(key);
}
else if (!fromLoader && PluginCache.hasCore(key))