Explorar o código

Make normal smoothing condition more explicit (#23093)

Garrett Johnson %!s(int64=4) %!d(string=hai) anos
pai
achega
70ab013afc
Modificáronse 1 ficheiros con 1 adicións e 2 borrados
  1. 1 2
      examples/jsm/loaders/LDrawLoader.js

+ 1 - 2
examples/jsm/loaders/LDrawLoader.js

@@ -1862,8 +1862,7 @@ class LDrawLoader extends Loader {
 		const doSmooth =
 			isPartType( subobjectParseScope.type ) ||
 			(
-				! isPartType( subobjectParseScope.type ) &&
-				! isModelType( subobjectParseScope.type ) &&
+				isPrimitiveType( subobjectParseScope.type ) &&
 				isModelType( subobjectParseScope.parentScope.type )
 			);