From 1158ce068e3b5b391604270bf10c52d0d2f7f4db Mon Sep 17 00:00:00 2001 From: Thales Lima Oliveira Date: Tue, 16 May 2017 19:07:49 -0300 Subject: Sync generator control fixed --- Project/IOControl.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'Project/IOControl.cpp') diff --git a/Project/IOControl.cpp b/Project/IOControl.cpp index d9ea52e..2eab8de 100644 --- a/Project/IOControl.cpp +++ b/Project/IOControl.cpp @@ -222,3 +222,12 @@ void IOControl::UpdatePoints() } } } + +Element* IOControl::GetCopy() +{ + IOControl* copy = new IOControl(m_ioFlags, m_elementID); + *copy = *this; + m_glStringValue = NULL; + SetValue(m_value); + return copy; +} -- cgit