Skip to content

Commit

Permalink
When substituting default box prim, don't change creator/perms.
Browse files Browse the repository at this point in the history
  • Loading branch information
appurist authored and kf6kjg committed Feb 13, 2019
1 parent 9d6610f commit 364ce81
Showing 1 changed file with 0 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -600,13 +600,6 @@ private void ReplacePartWithDefaultPrim(SceneObjectPart part, UUID ownerID)
// First, replace the prim with a default prim.
part.Shape = PrimitiveBaseShape.Default.Copy();
ReplaceDescription(part, part.CreatorID);

// Now the object owner becomes the creator too of the replacement prim.
part.CreatorID = ownerID;
part.BaseMask = (uint)(PermissionMask.All | PermissionMask.Export);
part.OwnerMask = (uint)(PermissionMask.All | PermissionMask.Export);
part.NextOwnerMask = (uint)PermissionMask.All;
part.EveryoneMask = (uint)PermissionMask.None;
// No need to replace textures since the whole prim was replaced.
m_replacedPart++;
}
Expand Down

0 comments on commit 364ce81

Please sign in to comment.