avoid InvalidBoundsRadius() calls caused by small changes
parent
d7ab1cdd15
commit
4119e60c0c
|
@ -867,6 +867,7 @@ namespace OpenSim.Region.Framework.Scenes
|
|||
|
||||
if (ParentGroup != null && !ParentGroup.IsDeleted)
|
||||
{
|
||||
if((oldpos - m_offsetPosition).LengthSquared() > 1.0f)
|
||||
ParentGroup.InvalidBoundsRadius();
|
||||
|
||||
PhysicsActor actor = PhysActor;
|
||||
|
@ -1165,9 +1166,9 @@ namespace OpenSim.Region.Framework.Scenes
|
|||
{
|
||||
if (m_shape != null)
|
||||
{
|
||||
|
||||
Vector3 oldscale = m_shape.Scale;
|
||||
m_shape.Scale = value;
|
||||
if (ParentGroup != null)
|
||||
if (ParentGroup != null && ((value - oldscale).LengthSquared() >1.0f))
|
||||
ParentGroup.InvalidBoundsRadius();
|
||||
PhysicsActor actor = PhysActor;
|
||||
if (actor != null)
|
||||
|
|
Loading…
Reference in New Issue