Просмотр исходного кода

Make normal smoothing condition more explicit (#23093)

Garrett Johnson 4 лет назад
Родитель
Сommit
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 =
 		const doSmooth =
 			isPartType( subobjectParseScope.type ) ||
 			isPartType( subobjectParseScope.type ) ||
 			(
 			(
-				! isPartType( subobjectParseScope.type ) &&
-				! isModelType( subobjectParseScope.type ) &&
+				isPrimitiveType( subobjectParseScope.type ) &&
 				isModelType( subobjectParseScope.parentScope.type )
 				isModelType( subobjectParseScope.parentScope.type )
 			);
 			);
 
 

粤ICP备19079148号