mirror of
https://github.com/opensim/opensim.git
synced 2026-08-08 02:05:34 +08:00
Hook up Keyframe motion to almost everything. Failing to cross a sim border
may yield unexpected results in some cases. No database persistence yet,
This commit is contained in:
@@ -1645,6 +1645,12 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
/// <param name="childPrims"></param>
|
||||
protected internal void LinkObjects(SceneObjectPart root, List<SceneObjectPart> children)
|
||||
{
|
||||
if (root.KeyframeMotion != null)
|
||||
{
|
||||
root.KeyframeMotion.Stop();
|
||||
root.KeyframeMotion = null;
|
||||
}
|
||||
|
||||
SceneObjectGroup parentGroup = root.ParentGroup;
|
||||
if (parentGroup == null) return;
|
||||
|
||||
@@ -1722,6 +1728,11 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
{
|
||||
if (part != null)
|
||||
{
|
||||
if (part.KeyframeMotion != null)
|
||||
{
|
||||
part.KeyframeMotion.Stop();
|
||||
part.KeyframeMotion = null;
|
||||
}
|
||||
if (part.ParentGroup.PrimCount != 1) // Skip single
|
||||
{
|
||||
if (part.LinkNum < 2) // Root
|
||||
|
||||
Reference in New Issue
Block a user