mirror of
https://github.com/opensim/opensim.git
synced 2026-07-31 13:55:35 +08:00
llLookAt(): use non-physical rotation if host prim is a physical attachment
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user