I’ve made a tool in my plugin so that when a spatial is moved around in the scene composer, it stays “locked” to the terrain. It works pretty well with any type of spatial. However, I discovered that the SDK dosen’t give me the option to use my tool, or any tools in fact, on AssetLinkNodes. Is this a bug in the SDK?
Currently I have my getNodeClass() inside my AbstractToolAction as follow:
@Override
public Class<?> getNodeClass() {
return JmeSpatial.class;
}
This should work, since JmeAssetLinkNode extends JmeNode. But even replacing JmeSpatial with JmeAssetLinkNode dosen’t give me any tools menu.
Hmm well then. I guess I can temporaily get around this issue by attaching the AssetLinkNode to a dummy node so that then I’ll be able to do what I want. But in case I wanted to add the functionality of a tool menu to JmeAssetLinkNode, is there any reason in particular that there is no tool menu currently?
Well, the question is more for @Sploreg I guess, but IMO it’s just and overlook and things were not added to AssetLinkNode when they were done for the JmeNode.
There is no reason it’s not there, so it can be added IMO.