Hi,
in rev 7726, SetSpatial was overriden in SkeletonControl
[java] @Override
public void setSpatial(Spatial spatial){
if (spatial != null){
Node node = (Node) spatial;
targets = findTargets(node);
}else{
targets = null;
}
}[/java]
But parent setSpatial was not called, thefore AbestractControl member spatial is not set.
and when you call getAttachmentsNode, you get a nice nullPointer at model.attachChild(n);
[java]public Node getAttachmentsNode(String boneName) {
Bone b = skeleton.getBone(boneName);
if (b == null) {
throw new IllegalArgumentException("Given bone name does not exist "
- "in the skeleton.");
}
Node n = b.getAttachmentsNode();
Node model = (Node) spatial;
model.attachChild(n);
return n;
}[/java]
Override should add
super.setSpatial(spatial);
so like
[java] @Override
public void setSpatial(Spatial spatial){
super.setSpatial(spatial);
if (spatial != null){
Node node = (Node) spatial;
targets = findTargets(node);
}else{
targets = null;
}
}[/java]