Proper passing of the "transform_key_request"
signal from SpatialEditorViewport to InspectorDock
This commit is contained in:
parent
3f76d2c2f3
commit
645c656571
|
@ -1827,7 +1827,7 @@ void SpatialEditorViewport::_sinput(const Ref<InputEvent> &p_event) {
|
||||||
if (!sp)
|
if (!sp)
|
||||||
continue;
|
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."));
|
set_message(TTR("Animation Key Inserted."));
|
||||||
|
@ -5814,7 +5814,7 @@ SpatialEditorPlugin::SpatialEditorPlugin(EditorNode *p_node) {
|
||||||
editor->get_viewport()->add_child(spatial_editor);
|
editor->get_viewport()->add_child(spatial_editor);
|
||||||
|
|
||||||
spatial_editor->hide();
|
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() {
|
SpatialEditorPlugin::~SpatialEditorPlugin() {
|
||||||
|
|
Loading…
Reference in New Issue