Script first pass
This commit is contained in:
1 parent
3b458aaf96
commit
3c0fa9d602
2 files changed
+9
-3
No files matched your search
@@ -21,7 +21,9 @@ VisualNovelTransformItemEvent::VisualNovelTransformItemEvent(
|
||||
this->callbackAnimation.setCallback(
|
||||
&item->transform, &Transform::setLocalPosition
|
||||
);
|
||||
this->callbackAnimation.addKeyframe(0.0f, start);
|
||||
if(duration != 0) {
|
||||
this->callbackAnimation.addKeyframe(0.0f, start);
|
||||
}
|
||||
this->callbackAnimation.addKeyframe(duration, end);
|
||||
}
|
||||
|
||||
@@ -38,7 +40,8 @@ VisualNovelTransformItemEvent::VisualNovelTransformItemEvent(
|
||||
this->callbackAnimation.setCallback(
|
||||
&item->transform, &Transform::setLocalPosition
|
||||
);
|
||||
this->relative = true;
|
||||
|
||||
if(duration != 0) this->relative = true;
|
||||
this->callbackAnimation.addKeyframe(duration, end);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user