summaryrefslogtreecommitdiffstats
path: root/Project/Constant.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Project/Constant.cpp')
-rw-r--r--Project/Constant.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/Project/Constant.cpp b/Project/Constant.cpp
index 9991d90..f99eab6 100644
--- a/Project/Constant.cpp
+++ b/Project/Constant.cpp
@@ -120,3 +120,10 @@ Element* Constant::GetCopy()
copy->m_glText = m_glText->GetCopy();
return copy;
}
+
+bool Constant::UpdateText()
+{
+ SetValue(m_value);
+ if(!m_glText->IsTextureOK()) return false;
+ return true;
+}