void EditorAudioBus::_effect_rmb(const Vector2 &p_pos) { TreeItem *item = effects->get_selected(); if (!item) return; if (item->get_metadata(0).get_type() != Variant::INT) return; delete_effect_popup->set_position(get_global_mouse_position()); delete_effect_popup->popup(); }
Vector2 CanvasItem::get_local_mouse_position() const { ERR_FAIL_COND_V(!get_viewport(), Vector2()); return get_global_transform().affine_inverse().xform(get_global_mouse_position()); }