Merge branch 'master' into fix/multibody-binary-stls
This commit is contained in:
@@ -516,7 +516,9 @@ aiNode* ImportNode(aiScene* pScene, glTF2::Asset& r, std::vector<unsigned int>&
|
||||
{
|
||||
Node& node = *ptr;
|
||||
|
||||
aiNode* ainode = new aiNode(node.name);
|
||||
std::string nameOrId = node.name.empty() ? node.id : node.name;
|
||||
|
||||
aiNode* ainode = new aiNode(nameOrId);
|
||||
|
||||
if (!node.children.empty()) {
|
||||
ainode->mNumChildren = unsigned(node.children.size());
|
||||
|
||||
Reference in New Issue
Block a user