Skip to content

Commit

Permalink
Fix scenegraph labels not clearing text mesh
Browse files Browse the repository at this point in the history
- If a model skin is applied to a model which replaces a valid text string with an empty string, the old string would continue to render because the text mesh was still valid.
  • Loading branch information
sturnclaw committed Jun 18, 2024
1 parent ea78766 commit ed15020
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/scenegraph/Label3D.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ namespace SceneGraph {
{
//regenerate geometry
m_geometry->Clear();
m_textMesh.reset();

if (!text.empty()) {
m_font->GetGeometry(*m_geometry, text, vector2f(0.f));

Expand Down

0 comments on commit ed15020

Please sign in to comment.