提交 ab883fb8 编写于 作者: M Mr.doob

Editor/App: Don't break when handling unused scripts.

上级 e7f881b2
......@@ -61,6 +61,13 @@ var APP = {
var object = scene.getObjectByProperty( 'uuid', uuid, true );
if ( object === undefined ) {
console.warn( 'APP.Player: Script without object.', uuid );
continue;
}
var scripts = json.scripts[ uuid ];
for ( var i = 0; i < scripts.length; i ++ ) {
......@@ -76,7 +83,7 @@ var APP = {
if ( events[ name ] === undefined ) {
console.warn( 'APP.Player: event type not supported (', name, ')' );
console.warn( 'APP.Player: Event type not supported (', name, ')' );
continue;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册