Add bone default name

master
Jeremy HU 2022-12-12 22:49:36 +11:00
parent 14888f459e
commit ebc72f30a0
1 changed files with 1 additions and 0 deletions

View File

@ -2855,6 +2855,7 @@ void Document::addBone(const dust3d::Uuid& boneId)
return;
Bone bone(boneId);
bone.name = "Bone" + QString::number(boneMap.size() + 1);
boneMap.emplace(boneId, std::move(bone));
boneIdList.push_back(boneId);
emit boneAdded(boneId);