Updated more scene item coponents to state system
This commit is contained in:
@ -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