Fixed loading of graphs in the GraphEditor.

RefactorUnifiedBlendTreeStateMachineHandling
Martin Felis 2023-04-15 21:52:01 +02:00
parent 3f609310e2
commit 9a1a82f681
1 changed files with 2 additions and 0 deletions

View File

@ -68,6 +68,8 @@ Socket sJsonToSocket(const json& json_data) {
if (type_string == "Bool") { if (type_string == "Bool") {
result.m_type = SocketType::SocketTypeBool; result.m_type = SocketType::SocketTypeBool;
result.m_type_size = sizeof(bool); result.m_type_size = sizeof(bool);
result.m_reference.ptr = &result.m_value.int_value;
if (have_value) { if (have_value) {
result.m_value.flag = json_data["value"]; result.m_value.flag = json_data["value"];
} }