Fixed a few small things.
This commit is contained in:
@ -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);
|
||||
}
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user