fix text nodes and stroke preview on resize
This commit is contained in:
@@ -113,3 +113,8 @@ void NodeText::draw()
|
||||
m_text_mesh.draw();
|
||||
glDisable(GL_BLEND);
|
||||
}
|
||||
|
||||
void NodeText::handle_resize(glm::vec2 old_size, glm::vec2 new_size, float zoom)
|
||||
{
|
||||
m_text_mesh.update(font_id, m_text.c_str());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user