Goliat and I have spend some time tracing a bug in that NodeUpdater thingi, because in View line 833 it says:
if ((node instanceof NodeUpdater) && !(node instanceof Shape3D)) {
if (!((NodeUpdater)node).preRender(getTransform(),frustum,node.getTransformGroup().getTransform(),currentFrameStartTime)) return;
}
Unfortunately for those Nodes close to the root, who don’t have a transformgroup as a parent this will throw an null-pointer exception.
To resolve this, we could simply remove this node.getTransformGroup().getTransform() param, node will know this anyways, so there’s no need to have this there.
Additionally Goliat suggested, if the view could be passed directly instead of only it’s transform.
What do you think?
If you use it, please tell us, what parameters you need, so we won’t stop your code from working.
And ofcourse if you have some arguments against such a change!
Arne
