소스 검색

Allow arbitrary smoothing groups in OBJ files

Daniel Salvadori 4 년 전
부모
커밋
4b371a87a0
1개의 변경된 파일2개의 추가작업 그리고 5개의 파일을 삭제
  1. 2 5
      loader/obj/obj.go

+ 2 - 5
loader/obj/obj.go

@@ -704,11 +704,8 @@ func (dec *Decoder) parseSmooth(fields []string) error {
 		dec.smoothCurrent = false
 		return nil
 	}
-	if fields[0] == "1" || fields[0] == "on" {
-		dec.smoothCurrent = true
-		return nil
-	}
-	return dec.formatError("'s' with invalid value")
+	dec.smoothCurrent = true
+	return nil
 }
 
 /******************************************************************************