From 3d731859268d00eda688242626011f6b31a98f26 Mon Sep 17 00:00:00 2001 From: Kah Wei Date: Wed, 11 Jan 2023 15:15:35 +0800 Subject: [PATCH] Fixed vector issues when constructing the SHRig --- SHADE_Engine/src/Animation/SHRig.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/SHADE_Engine/src/Animation/SHRig.cpp b/SHADE_Engine/src/Animation/SHRig.cpp index 81c3e3de..0a70dcd3 100644 --- a/SHADE_Engine/src/Animation/SHRig.cpp +++ b/SHADE_Engine/src/Animation/SHRig.cpp @@ -103,7 +103,8 @@ namespace SHADE continue; // Recursively create children - newNode->Children.emplace_back(recurseCreateNode(asset, child)); + auto childNode = recurseCreateNode(asset, child); // Not sure why this works but it is required for + newNode->Children.emplace_back(childNode); // the emplace_back operation to not crash } return newNode;