diff options
author | UbitUmarov | 2012-08-30 00:15:46 +0100 |
---|---|---|
committer | UbitUmarov | 2012-08-30 00:15:46 +0100 |
commit | c821153a4fcc0a0d806d2c9be63cf48494e4dd06 (patch) | |
tree | 5ec352041b9388f46fc621ba16661b3581bd7cd1 /OpenSim/Region/Framework/Scenes/SceneObjectPart.cs | |
parent | A few more changes to keyframes (diff) | |
download | opensim-SC_OLD-c821153a4fcc0a0d806d2c9be63cf48494e4dd06.zip opensim-SC_OLD-c821153a4fcc0a0d806d2c9be63cf48494e4dd06.tar.gz opensim-SC_OLD-c821153a4fcc0a0d806d2c9be63cf48494e4dd06.tar.bz2 opensim-SC_OLD-c821153a4fcc0a0d806d2c9be63cf48494e4dd06.tar.xz |
[possible still bad] make use of keyframemotion.copy on sop.copy, replacing
fromdata(seralize). for now its called with null group since sop.copy()
hasn't usable new group information, so for copied keyframes be fully operational UpdateSceneObject(newgroup) needs to be called on them.
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/SceneObjectPart.cs')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/SceneObjectPart.cs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs b/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs index bf5fc99..4788a24 100644 --- a/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs +++ b/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs | |||
@@ -2110,6 +2110,9 @@ namespace OpenSim.Region.Framework.Scenes | |||
2110 | Array.Copy(Shape.ExtraParams, extraP, extraP.Length); | 2110 | Array.Copy(Shape.ExtraParams, extraP, extraP.Length); |
2111 | dupe.Shape.ExtraParams = extraP; | 2111 | dupe.Shape.ExtraParams = extraP; |
2112 | 2112 | ||
2113 | if (KeyframeMotion != null) | ||
2114 | dupe.KeyframeMotion = KeyframeMotion.Copy(null); | ||
2115 | |||
2113 | if (userExposed) | 2116 | if (userExposed) |
2114 | { | 2117 | { |
2115 | if (dupe.m_shape.SculptEntry && dupe.m_shape.SculptTexture != UUID.Zero) | 2118 | if (dupe.m_shape.SculptEntry && dupe.m_shape.SculptTexture != UUID.Zero) |