浏览代码

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
 }
 
 /******************************************************************************