You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-07 12:30:27 +00:00
Insert new key helper is back to 2D editor, missed it?
This commit is contained in:
@@ -409,7 +409,7 @@ void CanvasItemEditor::_node_removed(Node *p_node) {
|
||||
|
||||
void CanvasItemEditor::_keying_changed() {
|
||||
|
||||
if (AnimationPlayerEditor::singleton->get_key_editor()->has_keying())
|
||||
if (AnimationPlayerEditor::singleton->get_key_editor()->is_visible())
|
||||
animation_hb->show();
|
||||
else
|
||||
animation_hb->hide();
|
||||
@@ -2233,6 +2233,8 @@ void CanvasItemEditor::_notification(int p_what) {
|
||||
p->add_icon_item(get_icon("ControlAlignWide","EditorIcons"),"Full Rect",ANCHOR_ALIGN_WIDE);
|
||||
|
||||
|
||||
AnimationPlayerEditor::singleton->get_key_editor()->connect("visibility_changed",this,"_keying_changed");
|
||||
_keying_changed();
|
||||
}
|
||||
|
||||
if (p_what==NOTIFICATION_READY) {
|
||||
@@ -3477,7 +3479,7 @@ CanvasItemEditor::CanvasItemEditor(EditorNode *p_editor) {
|
||||
box_selecting=false;
|
||||
//zoom=0.5;
|
||||
singleton=this;
|
||||
AnimationPlayerEditor::singleton->get_key_editor()->connect("keying_changed",this,"_keying_changed");
|
||||
|
||||
set_process_unhandled_key_input(true);
|
||||
can_move_pivot=false;
|
||||
drag=DRAG_NONE;
|
||||
|
||||
Reference in New Issue
Block a user