You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-08 12:40:44 +00:00
Style: Partially apply clang-tidy's cppcoreguidelines-pro-type-member-init
Didn't commit all the changes where it wants to initialize a struct
with `{}`. Should be reviewed in a separate PR.
Option `IgnoreArrays` enabled for now to be conservative, can be
disabled to see if it proposes more useful changes.
Also fixed manually a handful of other missing initializations / moved
some from constructors.
This commit is contained in:
@@ -4888,14 +4888,6 @@ CanvasItemEditor::CanvasItemEditor() {
|
||||
view_offset = Point2(-150 - RULER_WIDTH, -95 - RULER_WIDTH);
|
||||
previous_update_view_offset = view_offset; // Moves the view a little bit to the left so that (0,0) is visible. The values a relative to a 16/10 screen
|
||||
|
||||
grid_offset = Point2();
|
||||
grid_step = Point2(8, 8); // A power-of-two value works better as a default
|
||||
primary_grid_steps = 8; // A power-of-two value works better as a default
|
||||
grid_step_multiplier = 0;
|
||||
|
||||
snap_rotation_offset = 0;
|
||||
snap_rotation_step = Math::deg2rad(15.0);
|
||||
snap_scale_step = 0.1f;
|
||||
snap_target[0] = SNAP_TARGET_NONE;
|
||||
snap_target[1] = SNAP_TARGET_NONE;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user