add some missing matovr full updates

This commit is contained in:
UbitUmarov
2023-12-12 21:15:58 +00:00
parent 4a3cfd1004
commit 23daf5340b
9 changed files with 56 additions and 31 deletions

View File

@@ -3230,11 +3230,14 @@ namespace OpenSim.Region.Framework.Scenes
public void ScheduleUpdate(PrimUpdateFlags update)
{
if (ParentGroup == null || ParentGroup.IsDeleted || ParentGroup.Scene == null)
if (ParentGroup is null || ParentGroup.IsDeleted)
return;
if (Animations == null)
if (Animations is null)
update &= ~PrimUpdateFlags.Animations;
if (Shape is null || Shape.RenderMaterials is null)
update &= ~PrimUpdateFlags.MaterialOvr;
if (update == PrimUpdateFlags.None)
return;
@@ -3244,12 +3247,14 @@ namespace OpenSim.Region.Framework.Scenes
if (ParentGroup.Scene.GetNumberOfClients() == 0)
return;
bool isfull = false;
bool isfull;
if (ParentGroup.IsAttachment)
{
update |= PrimUpdateFlags.FullUpdate;
isfull = true;
}
else
isfull = (update & PrimUpdateFlags.FullUpdate) == PrimUpdateFlags.FullUpdate;
lock (UpdateFlagLock)
UpdateFlag |= update;