소스 검색

Make normal smoothing condition more explicit (#23093)

Garrett Johnson 3 년 전
부모
커밋
70ab013afc
1개의 변경된 파일1개의 추가작업 그리고 2개의 파일을 삭제
  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 )
 			);