Skip to content

Commit 105786d

Browse files
committed
Fixed animation track error with non existent entity
1 parent 7573630 commit 105786d

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

editor/window/AnimationWindow.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ float editor::AnimationWindow::xToTime(float x, float timeStart, ImVec2 canvasPo
9090

9191
std::string editor::AnimationWindow::getActionLabel(Entity actionEntity, Scene* scene) const {
9292
if (actionEntity == NULL_ENTITY) return "Empty";
93+
if (!scene->isEntityCreated(actionEntity)) return "Empty";
9394

9495
Signature sig = scene->getSignature(actionEntity);
9596

0 commit comments

Comments
 (0)