提交 3bb7d4b9 编写于 作者: T Takahiro

Fix GLTFExporter cachedData check

上级 092d2c0b
...@@ -396,7 +396,7 @@ THREE.GLTFExporter.prototype = { ...@@ -396,7 +396,7 @@ THREE.GLTFExporter.prototype = {
*/ */
function processImage( map ) { function processImage( map ) {
if ( cachedData.images[ map.uuid ] ) { if ( cachedData.images[ map.uuid ] !== undefined ) {
return cachedData.images[ map.uuid ]; return cachedData.images[ map.uuid ];
...@@ -507,7 +507,7 @@ THREE.GLTFExporter.prototype = { ...@@ -507,7 +507,7 @@ THREE.GLTFExporter.prototype = {
*/ */
function processMaterial( material ) { function processMaterial( material ) {
if ( cachedData.materials[ material.uuid ] ) { if ( cachedData.materials[ material.uuid ] !== undefined ) {
return cachedData.materials[ material.uuid ]; return cachedData.materials[ material.uuid ];
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册