do release controls on some objects delete

master
UbitUmarov 2020-02-21 19:19:19 +00:00
parent c887446b7e
commit 270a3e3836
1 changed files with 6 additions and 1 deletions

View File

@ -2771,8 +2771,13 @@ namespace OpenSim.Region.Framework.Scenes
SceneObjectPart[] partList = group.Parts;
foreach (SceneObjectPart part in partList)
for(int i = 0; i < partList.Length; ++i)
{
SceneObjectPart part = partList[i];
if (removeScripts)
part.Inventory.SendReleaseScriptsControl();
if (part.KeyframeMotion != null)
{
part.KeyframeMotion.Delete();