diff options
| author | Rémi Verschelde | 2017-08-16 17:17:56 +0200 |
|---|---|---|
| committer | GitHub | 2017-08-16 17:17:56 +0200 |
| commit | b1ecaaa22b8dd87a75db414cb84ad0f60d5d4cef (patch) | |
| tree | f02f5dac7b5a1c0e35c2290513b62f4873b81a93 /editor/plugins/animation_tree_editor_plugin.cpp | |
| parent | ae78a13f59c5a4025d078084afae2737cf0d1454 (diff) | |
| parent | 428f03cf06d3841b2a593f46aa42912ef5c82f3c (diff) | |
| download | godot-b1ecaaa22b8dd87a75db414cb84ad0f60d5d4cef.tar.gz godot-b1ecaaa22b8dd87a75db414cb84ad0f60d5d4cef.tar.zst godot-b1ecaaa22b8dd87a75db414cb84ad0f60d5d4cef.zip | |
Diffstat (limited to 'editor/plugins/animation_tree_editor_plugin.cpp')
| -rw-r--r-- | editor/plugins/animation_tree_editor_plugin.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/editor/plugins/animation_tree_editor_plugin.cpp b/editor/plugins/animation_tree_editor_plugin.cpp index 0ffd1c79c..6e24d4d2c 100644 --- a/editor/plugins/animation_tree_editor_plugin.cpp +++ b/editor/plugins/animation_tree_editor_plugin.cpp @@ -676,16 +676,16 @@ AnimationTreeEditor::ClickType AnimationTreeEditor::_locate_click(const Point2 & return CLICK_NONE; } -Point2 AnimationTreeEditor::_get_slot_pos(const StringName &p_node, bool p_input, int p_slot) { +Point2 AnimationTreeEditor::_get_slot_pos(const StringName &p_node_id, bool p_input, int p_slot) { Ref<StyleBox> style = get_stylebox("panel", "PopupMenu"); Ref<Font> font = get_font("font", "PopupMenu"); Ref<Texture> slot_icon = get_icon("NodeRealSlot", "EditorIcons"); - Size2 size = get_node_size(p_node); - Point2 pos = anim_tree->node_get_pos(p_node); + Size2 size = get_node_size(p_node_id); + Point2 pos = anim_tree->node_get_pos(p_node_id); - if (click_type == CLICK_NODE && click_node == p_node) { + if (click_type == CLICK_NODE && click_node == p_node_id) { pos += click_motion - click_pos; if (pos.x < 5) |
