Explorar el Código

Allow arbitrary smoothing groups in OBJ files

Daniel Salvadori hace 4 años
padre
commit
4b371a87a0
Se han modificado 1 ficheros con 2 adiciones y 5 borrados
  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
 }
 
 /******************************************************************************