Attempt to make it so items rezzed from inventory aren't half in the ground or half in the prim they are being rezzed on top off. This is currently only correct for single prims (not link groups) and unrotated prims. Next step is to fix for link sets and rotated prims.

This needs a lot more testing to find use cases where it might be wrong (like half way up a hill?)
This commit is contained in:
MW
2009-07-13 12:08:14 +00:00
parent e5e6f4c6df
commit a7043ebf53
2 changed files with 11 additions and 3 deletions

View File

@@ -303,7 +303,7 @@ namespace OpenSim.Region.CoreModules.Avatar.ObjectCaps
if (m_scene.Permissions.CanRezObject(1, avatar.UUID, pos))
{
// rez ON the ground, not IN the ground
pos.Z += 0.25F;
// pos.Z += 0.25F;
obj = m_scene.AddNewPrim(avatar.UUID, group_id, pos, rotation, pbs);
}