You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-10 13:00:37 +00:00
Enable Pixel Snap by default in the 2D editor
Since this avoids accidentally placing 2D nodes at subpixel positions, this results in more crisp visuals by default, even when pixel snapping is disabled in the project settings.
This commit is contained in:
@@ -5204,7 +5204,9 @@ CanvasItemEditor::CanvasItemEditor(EditorNode *p_editor) {
|
|||||||
snap_rotation = false;
|
snap_rotation = false;
|
||||||
snap_scale = false;
|
snap_scale = false;
|
||||||
snap_relative = false;
|
snap_relative = false;
|
||||||
snap_pixel = false;
|
// Enable pixel snapping even if pixel snap rendering is disabled in the Project Settings.
|
||||||
|
// This results in crisper visuals by preventing 2D nodes from being placed at subpixel coordinates.
|
||||||
|
snap_pixel = true;
|
||||||
snap_target[0] = SNAP_TARGET_NONE;
|
snap_target[0] = SNAP_TARGET_NONE;
|
||||||
snap_target[1] = SNAP_TARGET_NONE;
|
snap_target[1] = SNAP_TARGET_NONE;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user