Parcourir la source

Allow arbitrary smoothing groups in OBJ files

Daniel Salvadori il y a 4 ans
Parent
commit
4b371a87a0
1 fichiers modifiés avec 2 ajouts et 5 suppressions
  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
 }
 
 /******************************************************************************