Skip to content
Permalink
Browse files

[Physics] Use asset cloner for shape desc

  • Loading branch information
Eideren committed May 23, 2019
1 parent 3be3ca7 commit 0cc07bd85873cbcef0beb087774b5ee3e8cb9d60
Showing with 2 additions and 1 deletion.
  1. +2 −1 sources/editor/Xenko.Assets.Presentation/AssetEditors/Gizmos/PhysicsGizmo.cs
@@ -11,6 +11,7 @@
using Xenko.Graphics;
using Xenko.Physics;
using Xenko.Rendering;
using Xenko.Core.Assets;

namespace Xenko.Assets.Presentation.AssetEditors.Gizmos
{
@@ -107,7 +108,7 @@ private static List<IInlineColliderShapeDesc> CloneDescs(IEnumerable<IInlineColl
}
else
{
var cloned = desc.DeepClone();
var cloned = AssetCloner.Clone(desc, AssetClonerFlags.KeepReferences);
res.Add(cloned);
}
}

0 comments on commit 0cc07bd

Please sign in to comment.
You can’t perform that action at this time.