mirror of
https://github.com/bloeys/assimp-go.git
synced 2025-12-29 08:28:20 +00:00
Compare commits
4 Commits
v0.4.2
...
41995b60bb
| Author | SHA1 | Date | |
|---|---|---|---|
| 41995b60bb | |||
| e6f5dca6da | |||
| 0bc81ac5ba | |||
| 6bb760fc0a |
@ -38,7 +38,7 @@ download from the GitHub releases page.
|
|||||||
|
|
||||||
### Installing on Windows
|
### Installing on Windows
|
||||||
|
|
||||||
Download the **.dll** of the release you want, and place it in the **root** of your Go project.
|
Download the **.dll** of the [release you want](https://github.com/bloeys/assimp-go/releases), and place it in the **root** of your Go project.
|
||||||
|
|
||||||
### Installing on MacOS
|
### Installing on MacOS
|
||||||
|
|
||||||
|
|||||||
@ -215,7 +215,7 @@ func parseNodes(cNodesIn **C.struct_aiNode, parent *Node, parentChildrenCount ui
|
|||||||
}
|
}
|
||||||
|
|
||||||
//Parse node's children
|
//Parse node's children
|
||||||
nodes[i].Children = parseNodes(n.mChildren, nodes[i], parentChildrenCount)
|
nodes[i].Children = parseNodes(n.mChildren, nodes[i], uint(n.mNumChildren))
|
||||||
}
|
}
|
||||||
|
|
||||||
return nodes
|
return nodes
|
||||||
@ -519,6 +519,10 @@ func parseVertexWeights(cWeights *C.struct_aiVertexWeight, count uint) []VertexW
|
|||||||
}
|
}
|
||||||
|
|
||||||
func parseAiString(aiString C.struct_aiString) string {
|
func parseAiString(aiString C.struct_aiString) string {
|
||||||
|
if aiString.length == 0 {
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
|
||||||
return C.GoStringN(&aiString.data[0], C.int(aiString.length))
|
return C.GoStringN(&aiString.data[0], C.int(aiString.length))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user