瀏覽代碼

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 )
 			);