diff options
Diffstat (limited to 'OpenSim/Region/Environment/Modules/World/TreePopulator')
-rw-r--r-- | OpenSim/Region/Environment/Modules/World/TreePopulator/TreePopulatorModule.cs | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/OpenSim/Region/Environment/Modules/World/TreePopulator/TreePopulatorModule.cs b/OpenSim/Region/Environment/Modules/World/TreePopulator/TreePopulatorModule.cs index 990d36e..8061648 100644 --- a/OpenSim/Region/Environment/Modules/World/TreePopulator/TreePopulatorModule.cs +++ b/OpenSim/Region/Environment/Modules/World/TreePopulator/TreePopulatorModule.cs | |||
@@ -233,13 +233,15 @@ namespace OpenSim.Region.Environment.Modules.World.TreePopulator | |||
233 | { | 233 | { |
234 | position.Z = (float) m_scene.Heightmap[(int) position.X, (int) position.Y]; | 234 | position.Z = (float) m_scene.Heightmap[(int) position.X, (int) position.Y]; |
235 | 235 | ||
236 | SceneObjectGroup tree = | 236 | IVegetationModule module = m_scene.RequestModuleInterface<IVegetationModule>(); |
237 | m_scene.AddTree(uuid, UUID.Zero, new Vector3(0.1f, 0.1f, 0.1f), | 237 | |
238 | Quaternion.Identity, | 238 | if (null == module) |
239 | position, | 239 | return; |
240 | Tree.Cypress1, | 240 | |
241 | false); | 241 | SceneObjectGroup tree |
242 | 242 | = module.AddTree( | |
243 | uuid, UUID.Zero, new Vector3(0.1f, 0.1f, 0.1f), Quaternion.Identity, position, Tree.Cypress1, false); | ||
244 | |||
243 | m_trees.Add(tree.UUID); | 245 | m_trees.Add(tree.UUID); |
244 | tree.SendGroupFullUpdate(); | 246 | tree.SendGroupFullUpdate(); |
245 | } | 247 | } |