VRMA import fix, annd added bone picker display for humanoids without armature

This commit is contained in:
Turanszki Janos
2025-04-29 16:54:13 +02:00
parent 19e493f0d9
commit 554b404ad9
3 changed files with 240 additions and 253 deletions
+234 -251
View File
File diff suppressed because it is too large Load Diff
+1
View File
@@ -146,6 +146,7 @@ public:
bool bone_picking = false;
void CheckBonePickingEnabled();
wi::unordered_map<wi::ecs::Entity, wi::primitive::Capsule> bone_picking_items;
void UpdateDynamicWidgets();
+5 -2
View File
@@ -3024,8 +3024,11 @@ void Import_Extension_VRMC(LoaderState& state)
{
auto node = bone.Get("node");
int idx = node.GetNumberAsInt();
Entity boneEntity = state.scene->transforms.GetEntity((size_t)idx);
Import_VRMC_Bone(state, boneEntity, key);
if (state.entityMap.count(idx))
{
Entity boneEntity = state.entityMap[idx];
Import_VRMC_Bone(state, boneEntity, key);
}
}
}
int asd = 90;