-
-
Notifications
You must be signed in to change notification settings - Fork 22k
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
Unify particle editors #94371
The head ref may contain hidden characters: "insane_particle_unification_\u{1F631}"
Unify particle editors #94371
Conversation
f69f01a
to
6c4336f
Compare
@@ -1465,6 +1465,7 @@ void CPUParticles3D::_bind_methods() { | |||
ClassDB::bind_method(D_METHOD("get_mesh"), &CPUParticles3D::get_mesh); | |||
|
|||
ClassDB::bind_method(D_METHOD("restart"), &CPUParticles3D::restart); | |||
ClassDB::bind_method(D_METHOD("capture_aabb"), &CPUParticles3D::capture_aabb); |
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.
For some reason CPU particles did not expose this method, while GPU did.
I needed it to generate AABB.
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.
But what about the 2D equivalent?
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.
Only GPU particles allow generating rect, so the code could handle a specific class. In 3D, since both types can generate AABB, I just used call().
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.
Okay then. If I could choose I'd rather have this exposed in another PR to keep it clean but it's also not that big of a deal.
0b15aec
to
28f8738
Compare
28f8738
to
b00a7b0
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.
Needs rebase, but then I'd say yolo?
b00a7b0
to
a4d724b
Compare
Thanks! |
Unifies all particle editors to use single base class and remove code duplication.