Create an object priorities array if none is specified in the XML.

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1745 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Michael Bayne
2002-09-23 23:53:33 +00:00
parent d675e3f970
commit ddb9734501
@@ -1,5 +1,5 @@
//
// $Id: MisoSceneRuleSet.java,v 1.10 2002/09/23 23:07:11 mdb Exp $
// $Id: MisoSceneRuleSet.java,v 1.11 2002/09/23 23:53:33 mdb Exp $
package com.threerings.miso.scene.tools.xml;
@@ -78,6 +78,11 @@ public class MisoSceneRuleSet extends RuleSetBase
model.objectActions.length == 0) {
model.objectActions = new String[1];
}
// create our object priorities if we don't have 'em
if (model.objectPrios == null) {
model.objectPrios = new byte[model.objectActions.length];
}
}
});
}