How to block something from being affected by undo/redo?

Hello, I’m trying to fix bugs on my plugin. One of bugs I discovered was undo/redo. I partially fixed it, but still have 1 problem: plane and brush part are destroyed when you make undo. Is there any way to block this 2 objects from being removed with undo?
image

This is a studio AND a plugin problem that no scripting will solve. You can’t pretty much do anything about it, maybe search some related problems to it and you 'll find some techniqes that may help you.

1 Like

Apparantly ChangeHistoryService ignores instances that have Archivable set to false.

If that doesn’t work you can create the plane and brush parts when the plugin starts, before any history waypoints are created, so that undoing will only move them not remove them.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.