ok … this is not really a bug … but if you use NodeUpdater and the node you try to update doesn’t own a transformgroup child the call to NodeUpdater.preRender() crashes…
this can be solved easily in two ways:
in View line 999: check if there is a TransformGroup and a Transform3D and call preRender depending on the result:
if ( node instanceof NodeUpdater && node.getTransformGroup() != null && node.getTransformGroup().getTransform() != null ) {
if (!((NodeUpdater)node).preRender(
getTransform(),
frustum,
node.getTransformGroup().getTransform(),
currentFrameStartTime)) return;
}
or ( in my opinon the preferable way ): always call preRender even if there is no transform stuff
if ( node instanceof NodeUpdater ) {
if (!((NodeUpdater)node).preRender(
getTransform(),
frustum,
( node.getTransformGroup() != null ? node.getTransformGroup().getTransform() : null ),
currentFrameStartTime)) return;
}
this of course assumes that everybody who uses TransformGroupS has Transform3Ds in them
just my 50 cent … Florian
)