1
0

Ensure that absent bone names work

Achieved by refactoring the code to use
`std::optional<std::string>` instead of `core::stringc`.
This commit is contained in:
Lars Mueller
2024-01-31 00:00:40 +01:00
parent 4299ee21d8
commit 6ab23fa848
12 changed files with 69 additions and 91 deletions

View File

@@ -8,6 +8,8 @@
#include "IBoneSceneNode.h"
#include <optional>
namespace irr
{
namespace scene
@@ -19,7 +21,8 @@ namespace scene
//! constructor
CBoneSceneNode(ISceneNode* parent, ISceneManager* mgr,
s32 id=-1, u32 boneIndex=0, const c8* boneName=0);
s32 id=-1, u32 boneIndex=0,
const std::optional<std::string> &boneName = std::nullopt);
//! Returns the index of the bone
u32 getBoneIndex() const override;