Create the colorizer before we set the scene model as that will fire up
the scene block resolver on a new thread which could, in theory, then request said colorizer before we got around to setting it. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3455 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -127,10 +127,10 @@ public class StageScenePanel extends MisoScenePanel
|
|||||||
{
|
{
|
||||||
_scene = scene;
|
_scene = scene;
|
||||||
if (_scene != null) {
|
if (_scene != null) {
|
||||||
|
_rizer = new SceneColorizer(_ctx.getColorPository(), scene);
|
||||||
recomputePortals();
|
recomputePortals();
|
||||||
setSceneModel(StageMisoSceneModel.getSceneModel(
|
setSceneModel(StageMisoSceneModel.getSceneModel(
|
||||||
scene.getSceneModel()));
|
scene.getSceneModel()));
|
||||||
_rizer = new SceneColorizer(_ctx.getColorPository(), scene);
|
|
||||||
} else {
|
} else {
|
||||||
Log.warning("Zoiks! We can't display a null scene!");
|
Log.warning("Zoiks! We can't display a null scene!");
|
||||||
// TODO: display something to the user letting them know that
|
// TODO: display something to the user letting them know that
|
||||||
|
|||||||
Reference in New Issue
Block a user