VRMA import fix, annd added bone picker display for humanoids without armature
This commit is contained in:
+234
-251
File diff suppressed because it is too large
Load Diff
@@ -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();
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user