summaryrefslogtreecommitdiff
path: root/editor/animation_track_editor.cpp
diff options
context:
space:
mode:
authorkhairul169 <me@khairul.my.id>2018-07-01 16:10:20 +0700
committerkhairul169 <me@khairul.my.id>2018-07-03 13:24:47 +0700
commit0f616ff5d8052b8d7de2ed6af92c3acc07d4349b (patch)
tree3214e70b88dbaae409aafe38faf59222f042698f /editor/animation_track_editor.cpp
parent3852c5f8a0b439a8c0c6e72433d6fe82e3e596de (diff)
Hide play position if animation node is invalid
Diffstat (limited to 'editor/animation_track_editor.cpp')
-rw-r--r--editor/animation_track_editor.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/editor/animation_track_editor.cpp b/editor/animation_track_editor.cpp
index 02d667031a..293684f48e 100644
--- a/editor/animation_track_editor.cpp
+++ b/editor/animation_track_editor.cpp
@@ -874,9 +874,11 @@ void AnimationTimelineEdit::set_animation(const Ref<Animation> &p_animation) {
if (animation.is_valid()) {
len_hb->show();
add_track->show();
+ play_position->show();
} else {
len_hb->hide();
add_track->hide();
+ play_position->hide();
}
update();
update_values();