mantis 8668: invalidate part VOC on lsl scale change
parent
c30cb8a9cf
commit
25b4a310f5
|
@ -247,6 +247,9 @@ namespace OpenSim.Region.Framework.Scenes
|
||||||
Vector3 grppos = group.getCenterOffset();
|
Vector3 grppos = group.getCenterOffset();
|
||||||
distance = Vector3.Distance(presencePos, grppos);
|
distance = Vector3.Distance(presencePos, grppos);
|
||||||
distance -= bradius;
|
distance -= bradius;
|
||||||
|
if(distance < 0)
|
||||||
|
return pqueue;
|
||||||
|
|
||||||
distance *= group.getAreaFactor();
|
distance *= group.getAreaFactor();
|
||||||
if(group.IsAttachment)
|
if(group.IsAttachment)
|
||||||
distance *= 0.5f;
|
distance *= 0.5f;
|
||||||
|
|
|
@ -1841,6 +1841,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||||
tmp.Y = (float)scale.y;
|
tmp.Y = (float)scale.y;
|
||||||
tmp.Z = (float)scale.z;
|
tmp.Z = (float)scale.z;
|
||||||
part.Scale = tmp;
|
part.Scale = tmp;
|
||||||
|
part.ParentGroup.HasGroupChanged = true;
|
||||||
part.SendFullUpdateToAllClients();
|
part.SendFullUpdateToAllClients();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue