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) {
580
580
mesh . isDoubleSided = true ;
581
581
mesh . material . bothSides = true ;
582
582
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 ) {
586
586
if ( ! Object . prototype . hasOwnProperty . call ( materialFaces , materialName ) )
587
587
continue ;
588
588
sawMaterial = true ;
589
589
590
590
var currentMaterial = this . _materials [ materialName ] ;
591
591
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
+ }
593
595
continue ;
594
596
}
595
597
You can’t perform that action at this time.
0 commit comments