diff options
| author | Juan Linietsky | 2017-01-04 01:16:14 -0300 |
|---|---|---|
| committer | Juan Linietsky | 2017-01-04 01:16:14 -0300 |
| commit | b085c40edfac45ec1c8b866c789f6e9bab7e5e08 (patch) | |
| tree | fb53cad5fcb37fcad404805fe7330d36fcd4e905 /tools/editor/plugins/animation_player_editor_plugin.cpp | |
| parent | 3fae505128d5bfdeec42244820d0b85d0408f2b7 (diff) | |
| download | godot-b085c40edfac45ec1c8b866c789f6e9bab7e5e08.tar.gz godot-b085c40edfac45ec1c8b866c789f6e9bab7e5e08.tar.zst godot-b085c40edfac45ec1c8b866c789f6e9bab7e5e08.zip | |
-Conversion of most properties to a simpler syntax, easier to use by script
-Modified help to display properties
GDScript can still not make use of them, though.
Diffstat (limited to 'tools/editor/plugins/animation_player_editor_plugin.cpp')
| -rw-r--r-- | tools/editor/plugins/animation_player_editor_plugin.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/editor/plugins/animation_player_editor_plugin.cpp b/tools/editor/plugins/animation_player_editor_plugin.cpp index ae12ad2a6..17ed3842b 100644 --- a/tools/editor/plugins/animation_player_editor_plugin.cpp +++ b/tools/editor/plugins/animation_player_editor_plugin.cpp @@ -77,14 +77,14 @@ void AnimationPlayerEditor::_notification(int p_what) { } } } - frame->set_val(player->get_current_animation_pos()); + frame->set_value(player->get_current_animation_pos()); key_editor->set_anim_pos(player->get_current_animation_pos()); EditorNode::get_singleton()->get_property_editor()->refresh(); } else if (last_active) { //need the last frame after it stopped - frame->set_val(player->get_current_animation_pos()); + frame->set_value(player->get_current_animation_pos()); } last_active=player->is_playing(); @@ -1108,7 +1108,7 @@ void AnimationPlayerEditor::_animation_key_editor_seek(float p_pos,bool p_drag) return; updating=true; - frame->set_val(p_pos); + frame->set_value(p_pos); updating=false; _seek_value_changed(p_pos,!p_drag); |
