Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Omitting Undo events in editor
#1
Question 
Hello, is there a way to omit the Undo events that are registered when spline control points are added? The skipRefreshingAndEvents flag for the InsertBefore/InsertAfter methods do not address this and I have found the inclusion of these events interrupt broader editor tools.
Reply
#2
Hi,
There is no simple setting that enables or disables undoing support in Curvy. each undo has to be disabled specifically. Since you are talking specifically about adding control points, I believe the undo you want to disable. is in GameObjectExt.UndoableCreateGameObject.
Can you please tell me more what you meant by undoing interrupting broader editor tools?
Have a nice day.
Available for freelance work, feel free to reach out: toolbuddy.net
Please consider leaving a review for Curvy, this helps immensely. Thank you.
Reply
#3
Thank you for following up.

The interruption I am referring occurs when an editor tool, such as a custom inspector, controls the control point count of a scene spline. Generally, I was looking to omit any undo registration downstream of setting the control point count because this is always reflected by the state of the inspector property (and the undo/redo events it naturally registers).
Reply
#4
Thank you for the explanation.
Available for freelance work, feel free to reach out: toolbuddy.net
Please consider leaving a review for Curvy, this helps immensely. Thank you.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Curvy Splines Built In Editor Undo causes issues. Lupos 1 1,220 10-02-2023, 08:52 AM
Last Post: _Aka_
  Raise spline events during edit mode arcadeperfect 3 2,012 08-24-2023, 08:38 AM
Last Post: _Aka_
  Can Curve Spline be used for an in game level editor. Lupos 30 14,602 06-03-2023, 10:58 AM
Last Post: _Aka_
Brick Extending Curvy to make a Hallway editor. JacobSL 5 3,220 02-13-2023, 09:29 AM
Last Post: _Aka_

Forum Jump: