# Curve will not confine to model surfaces

**URL:** <https://discourse.slicer.org/t/curve-will-not-confine-to-model-surfaces/39525>\
**Category:** Support\
**Created:** [October 3, 2024, 2:41pm UTC](https://discourse.slicer.org/t/curve-will-not-confine-to-model-surfaces/39525 "2024-10-03T14:41:35Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![zifangx](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/zifangx/32/77050_2.png) [@zifangx](https://discourse.slicer.org/u/zifangx)\
**Post date:** [December 15, 2024, 4:06pm UTC](https://discourse.slicer.org/t/curve-will-not-confine-to-model-surfaces/39525/5 "2024-12-15T16:06:35Z")

</div>

Thank you; I think I have figured out the trigger. The unexpected behaiour (crashing upon hitting undo on an open curve) started after I added the Undo/Redo button following [this](https://projectweek.na-mic.org/PW39_2023_Montreal/Projects/UndoRedo/) link, and later I tried the code snippet suggested by [this](https://discourse.slicer.org/t/is-it-possible-to-add-a-global-undo-button/16859/8) post, which I suspect further broked the open curve function somehow, crashing every time I try to adjust a control point on the curve, even when I reverse back the first version of the Undo/Redo code snippet.  
I have since then removed all code snippets in ‘.slicerrc’, and no more unexpected crashing so far.

---

_[View the full topic](https://discourse.slicer.org/t/curve-will-not-confine-to-model-surfaces/39525)._
