Updated more scene item coponents to state system
This commit is contained in:
1 parent
3a4c87fc37
commit
7838e1b92d
11 files changed
+256
-360
No files matched your search
@@ -18,8 +18,6 @@ namespace Dawn {
|
||||
*/
|
||||
void setInternal(V val) {
|
||||
if(val == this->_realValue) return;// TODO: can I omit this? kinda bad tbh.
|
||||
this->previous = this->_realValue;
|
||||
this->_realValue = val;
|
||||
|
||||
// Run the teardowns
|
||||
auto itTeardown = this->_effectTeardowns.begin();
|
||||
@@ -29,6 +27,10 @@ namespace Dawn {
|
||||
}
|
||||
this->_effectTeardowns.clear();
|
||||
|
||||
// Update the values
|
||||
this->previous = this->_realValue;
|
||||
this->_realValue = val;
|
||||
|
||||
// Notify the effect listeners
|
||||
auto itEffect = this->_effectListners.begin();
|
||||
while(itEffect != this->_effectListners.end()) {
|
||||
|
||||
Reference in new issue
Block a user