-
-
Notifications
You must be signed in to change notification settings - Fork 21.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Initialize class variables with default values in scene/ [1/2] #44630
Conversation
9719b05
to
e2e8f59
Compare
e2e8f59
to
a741b0d
Compare
a741b0d
to
829448b
Compare
829448b
to
4668ecf
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Physics classes look fine (I haven't checked other classes).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great overall, thanks for the huge amount of work (I did the same for core
and I know how tedious it is :D).
Found a couple bugs introduced by unwillingly changing the default value of some properties.
I initially commented about floats that should have .0
to make their type clear, but then stopped at some point as there's a ton of them. Would still be worth changing IMO, possibly by grepping the git show
for (float|real_t) .* =
.
bool zero_y; | ||
float cell_size = 1; | ||
float radius = 10; | ||
bool use_in_game = false; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unused, can be removed.
4668ecf
to
fbcb02c
Compare
fbcb02c
to
003bb8e
Compare
Thanks! Amazing work! |
Part of #43636
Fixes in 4.0 #35877
Also moved initialization of data from constructors.