-
-
Notifications
You must be signed in to change notification settings - Fork 21.1k
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
Unused variable in gpu_particles_3d_editor_plugin.cpp #43643
Comments
I am newbie here. I want to contribute here . can I work on this?? |
I'm not sure if
and a little lower
You can open PR with this fixes |
@qarmin shouldn't it be
and
? I'm just starting contributing here, so I'm curious what this accomplishes? If that's all that needs to be done, I can submit a PR. Edit: just finished compiling, gonna dig to see if I can figure it out |
I don't even know when to use . or -> because QtCreator itself inserts the correct character (in this case indeed ->). I don't know this code very well, but it seems to calculate and set the texture of the emission. The problem is that there is an unused variable, the removal of which would create another unused variable and would make it necessary to remove most of the code from the function. Since this function seems to make sense, the only solution will be to link the data inside through the This should be enough, so PR can be created with this changes(someone more familiar with the code should check PR soon). |
To clarify, the current code does nothing due to the lack of calls to So to fix this, there's two options:
To decide, the best is to do the first option, use the GPUParticles3D editor plugin, see what changed and if that's good or bad. The code was written by @reduz, but @JFonS may be able to tell if it's needed or not. |
I would say it's just missing the |
I dont think that @reduz removed that. |
@gxhamster If you check the commit I mentioned (3f335ce), in the It's probably just a mistake in the repetitive task of updating all |
…tor::_generate_emission_points Images for emission point texture and normals were created, but not transferred to textures. fix godotengine#43643
As far as I can see, this issue and its related PR can be closed. The calls to |
Closing per @and-rad's comment. |
Godot version:
4.0.dev.custom_build. dd54851
Issue description:
image2
is assigned but never used anywherealso
point_img2
is unused, because result is used only inimage2
godot/editor/plugins/gpu_particles_3d_editor_plugin.cpp
Lines 387 to 393 in 6497a3f
also
image
variable is not usedgodot/editor/plugins/gpu_particles_3d_editor_plugin.cpp
Lines 359 to 364 in 6497a3f
The text was updated successfully, but these errors were encountered: