fix bug from issue #16: input text not retracting in shell
This commit is contained in:
parent
00dc46be50
commit
7b37039fed
@ -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();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user