fix(lines): add a check to prevenmodel.enh

Signed-off-by: Schmarni <marnistromer@gmail.com>
This commit is contained in:
Schmarni
2025-09-02 22:40:47 +02:00
parent bf85140b65
commit 6f113a9ec4
2 changed files with 21 additions and 4 deletions

View File

@@ -199,7 +199,7 @@ fn gen_model_parts(
client.scenegraph.add_node(Node::generate(&client, false));
let spatial = Spatial::add_to(
&node,
Some(parent_spatial),
Some(parent_spatial.clone()),
transform.compute_matrix(),
false,
);
@@ -241,6 +241,7 @@ fn gen_model_parts(
.and_then(|v| v.bounds.get().copied())
.unwrap_or_default()
});
spatial.set_spatial_parent(&parent_spatial);
spatial.set_local_transform(transform.compute_matrix());
spatial.set_entity(entity);