提交 d41afdc4 编写于 作者: L Lewy Blue

catch undefined fileName

上级 4e0f6a70
......@@ -328,19 +328,19 @@
var fileName;
var currentPath = loader.path;
var children = connections.get( textureNode.id ).children;
if ( children !== undefined && children.length > 0 && images[ children[ 0 ].ID ] !== undefined ) {
fileName = images[ children[ 0 ].ID ];
}
var currentPath = loader.path;
if ( fileName.indexOf( 'blob:' ) === 0 || fileName.indexOf( 'data:' ) === 0 ) {
if ( fileName.indexOf( 'blob:' ) === 0 || fileName.indexOf( 'data:' ) === 0 ) {
loader.setPath( undefined );
loader.setPath( undefined );
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册