This commit is contained in:
tengge1 2021-07-16 20:37:50 +08:00
parent e7f3868dc3
commit 291b0241f0
3 changed files with 2 additions and 7 deletions

View File

@ -35,7 +35,7 @@ English / [中文](README_zh.md) &nbsp;&nbsp; | &nbsp;&nbsp; <a href="https://gi
11. Fix a bug that `Geometry` can not be serialized due to the upgrade of `three.js`.
12. Add material `polygonOffset`, `polygonOffsetFactor`, `polygonOffsetUnits` parameter visualization settings to solve the problem of depth conflict.
13. Fix a bug that component in mesh cannot save the `visible` attribute.
14. Fix a bug that `gltf` is recognised wrongly as `bin` mesh type as some `gltf`s has a `bin` file.
14. `Bin` type model is no longer supported.
## v0.5.10 has Released

View File

@ -35,7 +35,7 @@
11. 修复由于`three.js`升级,导致`Geometry`无法序列化的bug。
12. 增加材质`polygonOffset``polygonOffsetFactor``polygonOffsetUnits`参数可视化设置,解决深度冲突问题。
13. 修复模型内部组件无法保存可视性bug。
14. 修复`gltf`被错误的判断为`bin`类型,因为有的`gltf`带一个`bin`文件
14. 不再支持`bin`类型模型
## v0.5.10已经发布

View File

@ -131,14 +131,9 @@ func Add(w http.ResponseWriter, r *http.Request) {
meshType = Assimp
break
} else if strings.HasSuffix(strings.ToLower(info.Name()), ".gltf") {
// bug: gltf要在bin类型之前识别因为有的gltf带bin文件
entryFileName = fmt.Sprintf("%v/%v", savePath, info.Name())
meshType = Gltf
break
} else if strings.HasSuffix(strings.ToLower(info.Name()), ".bin") {
entryFileName = fmt.Sprintf("%v/%v", savePath, info.Name())
meshType = Binary
break
} else if strings.HasSuffix(strings.ToLower(info.Name()), ".json") {
entryFileName = fmt.Sprintf("%v/%v", savePath, info.Name())
meshType = JSON