diff options
| author | Gilles Roudiere | 2017-08-20 00:01:12 +0200 |
|---|---|---|
| committer | Gilles Roudiere | 2017-09-17 23:04:30 +0200 |
| commit | f48b76fd8dfec4f7e3a7ab4b76601502933bb4ef (patch) | |
| tree | 5857a6c025ad3ef915f365372b67a5abd65c6c77 /editor/plugins/canvas_item_editor_plugin.h | |
| parent | 69091d40350d4f632384f0fd16a1df80071b0a37 (diff) | |
| download | godot-f48b76fd8dfec4f7e3a7ab4b76601502933bb4ef.tar.gz godot-f48b76fd8dfec4f7e3a7ab4b76601502933bb4ef.tar.zst godot-f48b76fd8dfec4f7e3a7ab4b76601502933bb4ef.zip | |
Make the shortcuts for setting the pivot editable
Diffstat (limited to '')
| -rw-r--r-- | editor/plugins/canvas_item_editor_plugin.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/editor/plugins/canvas_item_editor_plugin.h b/editor/plugins/canvas_item_editor_plugin.h index 56f328c44..d2e72ec07 100644 --- a/editor/plugins/canvas_item_editor_plugin.h +++ b/editor/plugins/canvas_item_editor_plugin.h @@ -292,6 +292,9 @@ class CanvasItemEditor : public VBoxContainer { Ref<Texture> select_handle; Ref<Texture> anchor_handle; + Ref<ShortCut> drag_pivot_shortcut; + Ref<ShortCut> set_pivot_shortcut; + int handle_len; bool _is_part_of_subscene(CanvasItem *p_item); void _find_canvas_items_at_pos(const Point2 &p_pos, Node *p_node, const Transform2D &p_parent_xform, const Transform2D &p_canvas_xform, Vector<_SelectResult> &r_items, int limit = 0); |
