From ebc72f30a0e2c1a5cfb768bd55164843aee6b7a1 Mon Sep 17 00:00:00 2001 From: Jeremy HU Date: Mon, 12 Dec 2022 22:49:36 +1100 Subject: [PATCH] Add bone default name --- application/sources/document.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/application/sources/document.cc b/application/sources/document.cc index 34d7fe09..47201620 100644 --- a/application/sources/document.cc +++ b/application/sources/document.cc @@ -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);