fix bug from issue #16: input text not retracting in shell

This commit is contained in:
Lendemor 2018-06-03 22:33:39 +02:00
parent 00dc46be50
commit 7b37039fed

View File

@ -41,7 +41,8 @@ TextInputNode::TextInputNode(glm::vec2 dimension):
void TextInputNode::update()
{
if(!m_hasFocus) return;
if(m_hasFocus)
{
std::wstring text = getEngine().getInput()->getText();
@ -132,7 +133,7 @@ void TextInputNode::update()
if(m_text_updated)
updateTextMesh();
}
GUINode::update();
}