Skip to content

Conversation

@riccardobl
Copy link
Member

@riccardobl riccardobl commented Jun 1, 2025

The current code checks if all the components are either positive or negative infinity.
This patch changes it to check component per component using the Vector3f.isValidVector() method, without this, some (misconfigured?) particle emitters could cause the engine to crash when assertions are enabled due to the com.jme3.bounding.Intersection class using the isValidVector() check internally.

I've encountered this issue in my code using the newtonian particle influencer, but i don't have the step-by-step to reproduce.

@riccardobl riccardobl added bug Something that is supposed to work, but doesn't. More severe than a "defect". defect Something that is supposed to work, but doesn't. Less severe than a "bug" and removed bug Something that is supposed to work, but doesn't. More severe than a "defect". labels Jun 1, 2025
@yaRnMcDonuts yaRnMcDonuts added this to the v3.9.0 milestone Jun 2, 2025
@yaRnMcDonuts yaRnMcDonuts merged commit 6a814e5 into jMonkeyEngine:master Jun 8, 2025
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

defect Something that is supposed to work, but doesn't. Less severe than a "bug"

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants