mirror of
https://github.com/opensim/opensim.git
synced 2026-07-31 13:55:35 +08:00
Preliminary work on appearance layers. No user functionality yet.
This commit is contained in:
@@ -2187,9 +2187,14 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||
m_host.AddScriptLPS(1);
|
||||
|
||||
// try to let this work as in SL...
|
||||
if (m_host.ParentID == 0)
|
||||
if (m_host.LinkNum < 2)
|
||||
{
|
||||
// special case: If we are root, rotate complete SOG to new rotation
|
||||
// Special case: If we are root, rotate complete SOG to new
|
||||
// rotation.
|
||||
// We are root if the link number is 0 (single prim) or 1
|
||||
// (root prim). ParentID may be nonzero in attachments and
|
||||
// using it would cause attachments and HUDs to rotate
|
||||
// to the wrong positions.
|
||||
SetRot(m_host, Rot2Quaternion(rot));
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user