Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
godot
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
community
godot
Commits
30c3c330
Unverified
Commit
30c3c330
authored
Oct 11, 2019
by
Rémi Verschelde
Committed by
GitHub
Oct 11, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #32721 from groud/independant_grid_snap
Move grid snapping to an independent button
parents
be446038
fff953ac
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
53 additions
and
44 deletions
+53
-44
canvas_item_editor_plugin.cpp
editor/plugins/canvas_item_editor_plugin.cpp
+46
-40
canvas_item_editor_plugin.h
editor/plugins/canvas_item_editor_plugin.h
+7
-4
No files found.
editor/plugins/canvas_item_editor_plugin.cpp
View file @
30c3c330
This diff is collapsed.
Click to expand it.
editor/plugins/canvas_item_editor_plugin.h
View file @
30c3c330
...
...
@@ -259,13 +259,14 @@ private:
float
snap_rotation_step
;
float
snap_rotation_offset
;
bool
snap_active
;
bool
smart_snap_active
;
bool
grid_snap_active
;
bool
snap_node_parent
;
bool
snap_node_anchors
;
bool
snap_node_sides
;
bool
snap_node_center
;
bool
snap_other_nodes
;
bool
snap_grid
;
bool
snap_guides
;
bool
snap_rotation
;
bool
snap_relative
;
...
...
@@ -347,7 +348,8 @@ private:
ToolButton
*
ruler_button
;
ToolButton
*
snap_button
;
ToolButton
*
smart_snap_button
;
ToolButton
*
grid_snap_button
;
MenuButton
*
snap_config_menu
;
PopupMenu
*
smartsnap_config_popup
;
...
...
@@ -529,7 +531,8 @@ private:
void
_button_zoom_minus
();
void
_button_zoom_reset
();
void
_button_zoom_plus
();
void
_button_toggle_snap
(
bool
p_status
);
void
_button_toggle_smart_snap
(
bool
p_status
);
void
_button_toggle_grid_snap
(
bool
p_status
);
void
_button_tool_select
(
int
p_index
);
HSplitContainer
*
palette_split
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment