Allow using the model's root node as a controller target.

git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@21 ed5b42cb-e716-0410-a449-f6a68f950b19
This commit is contained in:
Andrzej Kapolka
2006-07-31 22:00:00 +00:00
parent 6883bf966d
commit 260b8a8a09
@@ -467,7 +467,8 @@ public class ModelDef
Properties subProps =
PropertiesUtil.getSubProperties(props, controllers[ii]);
String node = subProps.getProperty("node", controllers[ii]);
Spatial target = nodes.get(node);
Spatial target = node.equals(model.getName()) ?
model : nodes.get(node);
if (target == null) {
Log.warning("Missing controller node [name=" + node + "].");
continue;