mantis 8668: invalidate part VOC on lsl scale change

master
UbitUmarov 2020-03-03 11:37:23 +00:00
parent c30cb8a9cf
commit 25b4a310f5
2 changed files with 4 additions and 0 deletions

View File

@ -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;

View File

@ -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();
} }