diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2019-04-21 12:58:24 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-21 12:58:24 +0200 |
commit | 7879968136828a6b98daab9ee4e8897eb8c26048 (patch) | |
tree | 3aeca88045b312bbfcab61d23f78a3130ceafafd /editor | |
parent | e003324a1ed88b2802920073f6bcfd46e8a6815a (diff) | |
parent | 645c656571a52bb05f48bdb2ff86e53f9df9ab44 (diff) |
Merge pull request #28026 from Dentoid/insert_keyframe_fix
Fix for "Insert Keyframe" shortcut doing nothing
Diffstat (limited to 'editor')
-rw-r--r-- | editor/plugins/spatial_editor_plugin.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/editor/plugins/spatial_editor_plugin.cpp b/editor/plugins/spatial_editor_plugin.cpp index 321b136c3b..1d37cb84f7 100644 --- a/editor/plugins/spatial_editor_plugin.cpp +++ b/editor/plugins/spatial_editor_plugin.cpp @@ -1850,7 +1850,7 @@ void SpatialEditorViewport::_sinput(const Ref<InputEvent> &p_event) { if (!sp) continue; - emit_signal("transform_key_request", sp, "", sp->get_transform()); + spatial_editor->emit_signal("transform_key_request", sp, "", sp->get_transform()); } set_message(TTR("Animation Key Inserted.")); @@ -5902,7 +5902,7 @@ SpatialEditorPlugin::SpatialEditorPlugin(EditorNode *p_node) { editor->get_viewport()->add_child(spatial_editor); spatial_editor->hide(); - spatial_editor->connect("transform_key_request", editor, "_transform_keyed"); + spatial_editor->connect("transform_key_request", editor->get_inspector_dock(), "_transform_keyed"); } SpatialEditorPlugin::~SpatialEditorPlugin() { |