Skip to content

Node returns null bounding volume. #954

@mitm001

Description

@mitm001

I can not do pull requests anymore on github, along with many other issues with gitflub, so will just post the issue and fix here. Someone will have to test it out.

Node returns null bounding volume when it has no children.

See this forum post:
https://hub.jmonkeyengine.org/t/lemur-simtools-patch-stravaganza/41094/61

Suggested fix by pspeed is change this line:
this.worldBound = resultBound;
to
this.worldBound = resultBound != null ? resultBound : new BoundingBox(getWorldTranslation(), 0, 0, 0):

https://github.com/jMonkeyEngine/jmonkeyengine/blob/master/jme3-core/src/main/java/com/jme3/scene/Node.java#L173
or something like it.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions