Cover the case where prims are loaded and ParentGroup is not yet set

avinationmerge
Melanie 2012-03-20 18:02:43 +01:00
parent f2d17433bb
commit 7f7801ecb9
1 changed files with 10 additions and 5 deletions

View File

@ -1505,6 +1505,7 @@ namespace OpenSim.Region.Framework.Scenes
} }
else else
m_physicsShapeType = DefaultPhysicsShapeType(); m_physicsShapeType = DefaultPhysicsShapeType();
if (ParentGroup != null)
ParentGroup.HasGroupChanged = true; ParentGroup.HasGroupChanged = true;
} }
} }
@ -1519,6 +1520,7 @@ namespace OpenSim.Region.Framework.Scenes
m_density = value; m_density = value;
ScheduleFullUpdateIfNone(); ScheduleFullUpdateIfNone();
} }
if (ParentGroup != null)
ParentGroup.HasGroupChanged = true; ParentGroup.HasGroupChanged = true;
} }
} }
@ -1530,6 +1532,7 @@ namespace OpenSim.Region.Framework.Scenes
{ if( value >= -1 && value <=28.0f) { if( value >= -1 && value <=28.0f)
m_gravitymod = value; m_gravitymod = value;
ScheduleFullUpdateIfNone(); ScheduleFullUpdateIfNone();
if (ParentGroup != null)
ParentGroup.HasGroupChanged = true; ParentGroup.HasGroupChanged = true;
} }
} }
@ -1544,6 +1547,7 @@ namespace OpenSim.Region.Framework.Scenes
m_friction = value; m_friction = value;
ScheduleFullUpdateIfNone(); ScheduleFullUpdateIfNone();
} }
if (ParentGroup != null)
ParentGroup.HasGroupChanged = true; ParentGroup.HasGroupChanged = true;
} }
} }
@ -1558,6 +1562,7 @@ namespace OpenSim.Region.Framework.Scenes
m_bounce = value; m_bounce = value;
ScheduleFullUpdateIfNone(); ScheduleFullUpdateIfNone();
} }
if (ParentGroup != null)
ParentGroup.HasGroupChanged = true; ParentGroup.HasGroupChanged = true;
} }
} }