diff --git a/src/DotRecast.Recast.Demo/RecastDemo.cs b/src/DotRecast.Recast.Demo/RecastDemo.cs index 9541470..444fccb 100644 --- a/src/DotRecast.Recast.Demo/RecastDemo.cs +++ b/src/DotRecast.Recast.Demo/RecastDemo.cs @@ -324,7 +324,7 @@ public class RecastDemo : IRecastDemoChannel if (null != mesh) { - sample = new Sample(sample.GetInputGeom(), ImmutableArray.Empty, mesh); + sample.Update(sample.GetInputGeom(), ImmutableArray.Empty, mesh); toolset.SetEnabled(true); } }