After finishing to edit an attachment, let other avatars see the changes. (The changes weren't visible before because updates to attachments aren't sent while the attachment is selected.)
parent
1bd89ac287
commit
0094971186
|
@ -244,17 +244,12 @@ namespace OpenSim.Region.Framework.Scenes
|
|||
if (part.ParentGroup.RootPart.LocalId != part.LocalId)
|
||||
return;
|
||||
|
||||
bool isAttachment = false;
|
||||
|
||||
// This is wrong, wrong, wrong. Selection should not be
|
||||
// handled by group, but by prim. Legacy cruft.
|
||||
// TODO: Make selection flagging per prim!
|
||||
//
|
||||
part.ParentGroup.IsSelected = false;
|
||||
|
||||
if (part.ParentGroup.IsAttachment)
|
||||
isAttachment = true;
|
||||
else
|
||||
part.ParentGroup.ScheduleGroupForFullUpdate();
|
||||
|
||||
// If it's not an attachment, and we are allowed to move it,
|
||||
|
@ -262,7 +257,7 @@ namespace OpenSim.Region.Framework.Scenes
|
|||
// boundary, we will need to recount prims on the parcels.
|
||||
// For attachments, that makes no sense.
|
||||
//
|
||||
if (!isAttachment)
|
||||
if (!part.ParentGroup.IsAttachment)
|
||||
{
|
||||
if (Permissions.CanEditObject(
|
||||
part.UUID, remoteClient.AgentId)
|
||||
|
|
|
@ -2700,7 +2700,8 @@ namespace OpenSim.Region.Framework.Scenes
|
|||
return;
|
||||
|
||||
// This was pulled from SceneViewer. Attachments always receive full updates.
|
||||
// I could not verify if this is a requirement but this maintains existing behavior
|
||||
// This is needed because otherwise if only the root prim changes position, then
|
||||
// it looks as if the entire object has moved (including the other prims).
|
||||
if (ParentGroup.IsAttachment)
|
||||
{
|
||||
ScheduleFullUpdate();
|
||||
|
|
Loading…
Reference in New Issue