fix text nodes and stroke preview on resize

This commit is contained in:
2019-08-09 00:05:39 +02:00
parent 67dd9a2456
commit db3e815d55
3 changed files with 7 additions and 1 deletions

View File

@@ -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());
}