Fix regression where m_scene not yet defined when adding console commands
parent
d18d37faf6
commit
2541527cd7
|
@ -129,9 +129,11 @@ namespace Flocking
|
||||||
m_borderSize = cnf.GetFloat("BirdsRegionBorderSize", 5f);
|
m_borderSize = cnf.GetFloat("BirdsRegionBorderSize", 5f);
|
||||||
m_maxHeight = cnf.GetInt("BirdsMaxHeight", 256);
|
m_maxHeight = cnf.GetInt("BirdsMaxHeight", 256);
|
||||||
|
|
||||||
m_log.InfoFormat("[{0}] Enabled on channel {1} with Flock Size {2}", m_name, m_chatChannel, m_flockSize);
|
m_log.InfoFormat("[{0}] Enabled on channel {1} with Flock Size {2}", m_name, m_chatChannel, m_flockSize);
|
||||||
|
|
||||||
|
m_scene = scene;
|
||||||
|
|
||||||
//register commands
|
//register commands with the scene
|
||||||
RegisterCommands();
|
RegisterCommands();
|
||||||
|
|
||||||
//register handlers
|
//register handlers
|
||||||
|
@ -143,7 +145,7 @@ namespace Flocking
|
||||||
m_view = new FlockingView(scene);
|
m_view = new FlockingView(scene);
|
||||||
m_view.BirdPrim = m_birdPrim;
|
m_view.BirdPrim = m_birdPrim;
|
||||||
m_frame = 0;
|
m_frame = 0;
|
||||||
m_scene = scene;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue