From 9a1a82f681087d3507255746ecd09a43d5d38231 Mon Sep 17 00:00:00 2001 From: Martin Felis Date: Sat, 15 Apr 2023 21:52:01 +0200 Subject: [PATCH] Fixed loading of graphs in the GraphEditor. --- src/AnimGraph/AnimGraphResource.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/AnimGraph/AnimGraphResource.cc b/src/AnimGraph/AnimGraphResource.cc index 1d5f43f..44457ff 100644 --- a/src/AnimGraph/AnimGraphResource.cc +++ b/src/AnimGraph/AnimGraphResource.cc @@ -68,6 +68,8 @@ Socket sJsonToSocket(const json& json_data) { if (type_string == "Bool") { result.m_type = SocketType::SocketTypeBool; result.m_type_size = sizeof(bool); + result.m_reference.ptr = &result.m_value.int_value; + if (have_value) { result.m_value.flag = json_data["value"]; }