llLookAt(): use non-physical rotation if host prim is a physical attachment
parent
7b9ad11a98
commit
8333dcf388
|
@ -3108,7 +3108,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||||
// set the rotation of the object, copy that behavior
|
// set the rotation of the object, copy that behavior
|
||||||
PhysicsActor pa = m_host.PhysActor;
|
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);
|
llSetRot(rot);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue