aboutsummaryrefslogtreecommitdiff
path: root/tools/editor/property_editor.cpp
diff options
context:
space:
mode:
authorJuan Linietsky2016-07-06 23:46:04 -0300
committerJuan Linietsky2016-07-06 23:46:04 -0300
commit7c1ab42571d5291952e329554643142a30dee1d1 (patch)
treec496f23203877c6cfe99a809e97da74505fad7fa /tools/editor/property_editor.cpp
parent17e4ead62a949e2a1568574228a157ea4b403d30 (diff)
downloadgodot-7c1ab42571d5291952e329554643142a30dee1d1.tar.gz
godot-7c1ab42571d5291952e329554643142a30dee1d1.tar.zst
godot-7c1ab42571d5291952e329554643142a30dee1d1.zip
Fix the +1 button to insert keyframes in Sprite and Sprite3D, closes #5422
Diffstat (limited to '')
-rw-r--r--tools/editor/property_editor.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/tools/editor/property_editor.cpp b/tools/editor/property_editor.cpp
index e0dc76e73..4b3f245e4 100644
--- a/tools/editor/property_editor.cpp
+++ b/tools/editor/property_editor.cpp
@@ -2981,10 +2981,8 @@ void PropertyEditor::update_tree() {
else
item->set_cell_mode( 1, TreeItem::CELL_MODE_RANGE_EXPRESSION );
- if (p.hint==PROPERTY_HINT_SPRITE_FRAME) {
- item->set_range_config(1,0,99999,1);
- } else if (p.hint==PROPERTY_HINT_RANGE || p.hint==PROPERTY_HINT_EXP_RANGE) {
+ if (p.hint==PROPERTY_HINT_SPRITE_FRAME || p.hint==PROPERTY_HINT_RANGE || p.hint==PROPERTY_HINT_EXP_RANGE) {
int c = p.hint_string.get_slice_count(",");
float min=0,max=100,step=1;