llLookAt(): use non-physical rotation if host prim is a physical attachment

inv-download
dahlia 2015-02-24 17:16:30 -08:00
parent 7b9ad11a98
commit 8333dcf388
1 changed files with 1 additions and 1 deletions

View File

@ -3108,7 +3108,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
// set the rotation of the object, copy that behavior
PhysicsActor pa = m_host.PhysActor;
if (strength == 0 || pa == null || !pa.IsPhysical)
if (m_host.ParentGroup.IsAttachment || strength == 0 || pa == null || !pa.IsPhysical)
{
llSetRot(rot);
}