[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.
This commit is contained in:
UbitUmarov
2012-08-30 00:15:46 +01:00
parent 2e54c3cc8f
commit c821153a4f
3 changed files with 38 additions and 35 deletions

View File

@@ -2110,6 +2110,9 @@ namespace OpenSim.Region.Framework.Scenes
Array.Copy(Shape.ExtraParams, extraP, extraP.Length);
dupe.Shape.ExtraParams = extraP;
if (KeyframeMotion != null)
dupe.KeyframeMotion = KeyframeMotion.Copy(null);
if (userExposed)
{
if (dupe.m_shape.SculptEntry && dupe.m_shape.SculptTexture != UUID.Zero)