Skip to content

Commit

Permalink
[Tool] Fix empty render node contents.
Browse files Browse the repository at this point in the history
Looks like all making it all zero doesn't actually work.
  • Loading branch information
num0005 committed Dec 8, 2019
1 parent 67375bc commit 9d9c084
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion H2Codez/H2Tool/H2Tool_extra_commands.inl
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 9d9c084

Please sign in to comment.