From ddb973450138c70b3610b6aab3c796f06cab32ab Mon Sep 17 00:00:00 2001 From: Michael Bayne Date: Mon, 23 Sep 2002 23:53:33 +0000 Subject: [PATCH] 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 --- .../com/threerings/miso/tools/xml/MisoSceneRuleSet.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/java/com/threerings/miso/tools/xml/MisoSceneRuleSet.java b/src/java/com/threerings/miso/tools/xml/MisoSceneRuleSet.java index 947d93f4d..0970f8c26 100644 --- a/src/java/com/threerings/miso/tools/xml/MisoSceneRuleSet.java +++ b/src/java/com/threerings/miso/tools/xml/MisoSceneRuleSet.java @@ -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]; + } } }); }