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:
@@ -467,7 +467,8 @@ public class ModelDef
|
|||||||
Properties subProps =
|
Properties subProps =
|
||||||
PropertiesUtil.getSubProperties(props, controllers[ii]);
|
PropertiesUtil.getSubProperties(props, controllers[ii]);
|
||||||
String node = subProps.getProperty("node", 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) {
|
if (target == null) {
|
||||||
Log.warning("Missing controller node [name=" + node + "].");
|
Log.warning("Missing controller node [name=" + node + "].");
|
||||||
continue;
|
continue;
|
||||||
|
|||||||
Reference in New Issue
Block a user