aboutsummaryrefslogtreecommitdiff
path: root/editor/plugins/animation_tree_editor_plugin.cpp
diff options
context:
space:
mode:
authorWilson E. Alvarez2017-08-12 12:52:50 -0400
committerWilson E. Alvarez2017-08-12 15:12:49 -0400
commit428f03cf06d3841b2a593f46aa42912ef5c82f3c (patch)
treec006361e19c5ecbc02534496f936d1a4a5ad6ef3 /editor/plugins/animation_tree_editor_plugin.cpp
parent5052cb2b9104f57d0ff38d80da50bbeceb926e6f (diff)
downloadgodot-428f03cf06d3841b2a593f46aa42912ef5c82f3c.tar.gz
godot-428f03cf06d3841b2a593f46aa42912ef5c82f3c.tar.zst
godot-428f03cf06d3841b2a593f46aa42912ef5c82f3c.zip
Diffstat (limited to 'editor/plugins/animation_tree_editor_plugin.cpp')
-rw-r--r--editor/plugins/animation_tree_editor_plugin.cpp8
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 156a74144..a66e4cb56 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)