File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
mfr/extensions/jsc3d/static/js Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -580,16 +580,18 @@ JSC3D.Autodesk3DSLoader.prototype.parse3DS = function(scene, data) {
580580 mesh . isDoubleSided = true ;
581581 mesh . material . bothSides = true ;
582582
583- var materialFaces = this . _cur_obj . materialFaces || { } ;
584- var sawMaterial = false ;
585- for ( var materialName in materialFaces ) {
583+ let materialFaces = this . _cur_obj . materialFaces || { } ;
584+ let sawMaterial = false ;
585+ for ( let materialName in materialFaces ) {
586586 if ( ! Object . prototype . hasOwnProperty . call ( materialFaces , materialName ) )
587587 continue ;
588588 sawMaterial = true ;
589589
590590 var currentMaterial = this . _materials [ materialName ] ;
591591 if ( ! currentMaterial ) {
592- if ( JSC3D . console ) JSC3D . console . logWarning ( '3DS: missing material "' + materialName + '", using defaults.' ) ;
592+ if ( JSC3D . console ) {
593+ JSC3D . console . logWarning ( '3DS: missing material "' + materialName + '", using defaults.' ) ;
594+ }
593595 continue ;
594596 }
595597
You can’t perform that action at this time.
0 commit comments