Display invalid value keys in AnimationTrackEdit

Godot 2.1 and 3.0 had this feature but it was lost in the rewrite
of the animation editor in 3.1.
Drop unused KeyValid icon, since all valid keys now have a custom
type icon.

(cherry picked from commit b3d772ed83)
This commit is contained in:
Rémi Verschelde
2019-06-23 19:52:49 +02:00
parent 229892c40b
commit e7e7d17f6b
3 changed files with 51 additions and 49 deletions

View File

@ -31,6 +31,11 @@
#ifndef ANIMATION_TRACK_EDITOR_H
#define ANIMATION_TRACK_EDITOR_H
#include "editor/editor_data.h"
#include "editor/editor_spin_slider.h"
#include "editor/property_editor.h"
#include "editor/property_selector.h"
#include "scene/animation/animation_cache.h"
#include "scene/gui/control.h"
#include "scene/gui/file_dialog.h"
#include "scene/gui/menu_button.h"
@ -40,12 +45,6 @@
#include "scene/gui/tab_container.h"
#include "scene/gui/texture_rect.h"
#include "scene/gui/tool_button.h"
#include "editor/property_selector.h"
#include "editor_data.h"
#include "editor_spin_slider.h"
#include "property_editor.h"
#include "scene/animation/animation_cache.h"
#include "scene/resources/animation.h"
#include "scene_tree_editor.h"
@ -175,8 +174,9 @@ class AnimationTrackEdit : public Control {
void _path_entered(const String &p_text);
void _play_position_draw();
mutable int dropping_at;
bool _is_value_key_valid(const Variant &p_key_value, Variant::Type &r_valid_type) const;
mutable int dropping_at;
float insert_at_pos;
bool moving_selection_attempt;
int select_single_attempt;