From 9d9c084d246f0c3a6cc00e5186278d7e56bdf715 Mon Sep 17 00:00:00 2001 From: num0005 Date: Sun, 8 Dec 2019 21:03:07 +0000 Subject: [PATCH] [Tool] Fix empty render node contents. Looks like all making it all zero doesn't actually work. --- H2Codez/H2Tool/H2Tool_extra_commands.inl | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/H2Codez/H2Tool/H2Tool_extra_commands.inl b/H2Codez/H2Tool/H2Tool_extra_commands.inl index d0f5417..19e979e 100644 --- a/H2Codez/H2Tool/H2Tool_extra_commands.inl +++ b/H2Codez/H2Tool/H2Tool_extra_commands.inl @@ -474,7 +474,16 @@ static bool _cdecl h2pc_generate_render_model(datum tag, file_reference& FILE_RE tags::block_delete_all(&render_model->sections); tags::block_delete_all(&render_model->materials); - render_model_node_block empty_node{}; + render_model_node_block empty_node + { + 0, + NONE, NONE, NONE, + 0, + {0, 0, 0}, + {0, 0, 0, 1}, + {{0, 0, 0, 1}}, + 0 + }; auto empty_node_idx = render_model->nodes.find_element( [empty_node](const render_model_node_block *node)