mirror of
https://github.com/opensim/opensim.git
synced 2026-08-06 17:32:42 +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:
@@ -315,6 +315,14 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
|
||||
private SOPVehicle m_vehicle = null;
|
||||
|
||||
private KeyframeMotion m_keyframeMotion = null;
|
||||
|
||||
public KeyframeMotion KeyframeMotion
|
||||
{
|
||||
get; set;
|
||||
}
|
||||
|
||||
|
||||
#endregion Fields
|
||||
|
||||
// ~SceneObjectPart()
|
||||
@@ -1924,9 +1932,9 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
{
|
||||
if (UsePhysics)
|
||||
{
|
||||
if (ParentGroup.KeyframeMotion != null)
|
||||
ParentGroup.KeyframeMotion.Stop();
|
||||
ParentGroup.KeyframeMotion = null;
|
||||
if (ParentGroup.RootPart.KeyframeMotion != null)
|
||||
ParentGroup.RootPart.KeyframeMotion.Stop();
|
||||
ParentGroup.RootPart.KeyframeMotion = null;
|
||||
ParentGroup.Scene.AddPhysicalPrim(1);
|
||||
|
||||
PhysActor.OnRequestTerseUpdate += PhysicsRequestingTerseUpdate;
|
||||
|
||||
Reference in New Issue
Block a user