Merge branch 'master' of /var/git/opensim/
commit
0269ec6af0
|
@ -406,11 +406,14 @@ namespace OpenSim.Region.Framework.Scenes
|
||||||
public bool DeleteSceneObject(UUID uuid, bool resultOfObjectLinked)
|
public bool DeleteSceneObject(UUID uuid, bool resultOfObjectLinked)
|
||||||
{
|
{
|
||||||
EntityBase entity;
|
EntityBase entity;
|
||||||
if (!Entities.TryGetValue(uuid, out entity) && entity is SceneObjectGroup)
|
if (!Entities.TryGetValue(uuid, out entity) || (!(entity is SceneObjectGroup)))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
SceneObjectGroup grp = (SceneObjectGroup)entity;
|
SceneObjectGroup grp = (SceneObjectGroup)entity;
|
||||||
|
|
||||||
|
if (entity == null)
|
||||||
|
return false;
|
||||||
|
|
||||||
if (!resultOfObjectLinked)
|
if (!resultOfObjectLinked)
|
||||||
{
|
{
|
||||||
m_numPrim -= grp.PrimCount;
|
m_numPrim -= grp.PrimCount;
|
||||||
|
|
Loading…
Reference in New Issue