diff options
| -rw-r--r-- | editor/plugins/animation_tree_editor_plugin.cpp | 7 | ||||
| -rw-r--r-- | scene/gui/range.cpp | 4 | 
2 files changed, 8 insertions, 3 deletions
diff --git a/editor/plugins/animation_tree_editor_plugin.cpp b/editor/plugins/animation_tree_editor_plugin.cpp index 58948071fd..156a74144c 100644 --- a/editor/plugins/animation_tree_editor_plugin.cpp +++ b/editor/plugins/animation_tree_editor_plugin.cpp @@ -29,8 +29,8 @@  /*************************************************************************/  #include "animation_tree_editor_plugin.h" -#include "core/project_settings.h"  #include "core/io/resource_loader.h" +#include "core/project_settings.h"  #include "os/input.h"  #include "os/keyboard.h"  #include "scene/gui/menu_button.h" @@ -371,6 +371,7 @@ void AnimationTreeEditor::_popup_edit_dialog() {  				edit_label[0]->show();  				edit_scroll[0]->set_min(0);  				edit_scroll[0]->set_max(1); +				edit_scroll[0]->set_step(0.01);  				edit_scroll[0]->set_value(anim_tree->mix_node_get_amount(edited_node));  				edit_scroll[0]->set_begin(Point2(15, 25));  				edit_scroll[0]->show(); @@ -383,6 +384,7 @@ void AnimationTreeEditor::_popup_edit_dialog() {  				edit_label[0]->show();  				edit_scroll[0]->set_min(0);  				edit_scroll[0]->set_max(1); +				edit_scroll[0]->set_step(0.01);  				edit_scroll[0]->set_value(anim_tree->blend2_node_get_amount(edited_node));  				edit_scroll[0]->set_begin(Point2(15, 25));  				edit_scroll[0]->show(); @@ -398,6 +400,7 @@ void AnimationTreeEditor::_popup_edit_dialog() {  				edit_label[0]->show();  				edit_scroll[0]->set_min(-1);  				edit_scroll[0]->set_max(1); +				edit_scroll[0]->set_step(0.01);  				edit_scroll[0]->set_value(anim_tree->blend3_node_get_amount(edited_node));  				edit_scroll[0]->set_begin(Point2(15, 25));  				edit_scroll[0]->show(); @@ -411,6 +414,7 @@ void AnimationTreeEditor::_popup_edit_dialog() {  				edit_label[0]->show();  				edit_scroll[0]->set_min(0);  				edit_scroll[0]->set_max(1); +				edit_scroll[0]->set_step(0.01);  				edit_scroll[0]->set_value(anim_tree->blend4_node_get_amount(edited_node).x);  				edit_scroll[0]->set_begin(Point2(15, 25));  				edit_scroll[0]->show(); @@ -419,6 +423,7 @@ void AnimationTreeEditor::_popup_edit_dialog() {  				edit_label[1]->show();  				edit_scroll[1]->set_min(0);  				edit_scroll[1]->set_max(1); +				edit_scroll[1]->set_step(0.01);  				edit_scroll[1]->set_value(anim_tree->blend4_node_get_amount(edited_node).y);  				edit_scroll[1]->set_begin(Point2(15, 75));  				edit_scroll[1]->show(); diff --git a/scene/gui/range.cpp b/scene/gui/range.cpp index 7158592bb1..68afe8150a 100644 --- a/scene/gui/range.cpp +++ b/scene/gui/range.cpp @@ -273,8 +273,8 @@ Range::Range() {  	shared = memnew(Shared);  	shared->min = 0;  	shared->max = 100; -	shared->val = -			shared->step = 1; +	shared->val = 0; +	shared->step = 1;  	shared->page = 0;  	shared->owners.insert(this);  	shared->exp_ratio = false;  |