mirror of
https://github.com/opensim/opensim.git
synced 2026-08-07 01:35:46 +08:00
Move KeyframeMotion from SOG to SOP because we can't persist it any
other way because SOG doesn't technically exist in the DB
This commit is contained in:
@@ -1731,6 +1731,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;
|
||||
|
||||
@@ -1823,6 +1829,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