Fixed a few small things.

This commit is contained in:
2023-06-20 09:29:16 -07:00
parent 9574e9a3e9
commit d679b06b9f
13 changed files with 118 additions and 23 deletions

View File

@ -10,18 +10,18 @@ namespace Dawn {
template<typename T>
class VNSetEvent : public VNAnimateEvent<T> {
public:
T *modifies = nullptr;
StateProperty<T> *modifies = nullptr;
protected:
void onStart() override {
assertNotNull(this->modifies);
this->from = *modifies;
this->from = modifies->getValue();
VNAnimateEvent<T>::onStart();
}
void setValue(T value) override {
*modifies = value;
modifies->setValue(value);
}
};
}