Forum

Author Topic: chunk.model.cropSelection() deletes entire Undo history [1.8.0]  (Read 3010 times)

wojtek

  • Sr. Member
  • ****
  • Posts: 284
    • View Profile
chunk.model.cropSelection() deletes entire Undo history [1.8.0]
« on: January 01, 2022, 08:10:24 PM »
chunk.model.cropSelection() executed from python deletes entire Undo history.

Reposting as this may have gotten lost in the 1.8.0 pre-release thread.

Btw, the undo list window from the previous pre-release build seems to be gone now.

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 15067
    • View Profile
Re: chunk.model.cropSelection() deletes entire Undo history [1.8.0]
« Reply #1 on: January 08, 2022, 08:51:41 PM »
Hello wojtek,

Undo pane is not shown in the release version 1.8.0, although the history is still stored internally and is used when Undo/Redo buttons are pressed.

However, the history will be discarded, when user completes an action that cannot be undone, but which affects the elements for which the history is stored.
Best regards,
Alexey Pasumansky,
Agisoft LLC

wojtek

  • Sr. Member
  • ****
  • Posts: 284
    • View Profile
Re: chunk.model.cropSelection() deletes entire Undo history [1.8.0]
« Reply #2 on: January 21, 2022, 05:50:44 PM »
Hello wojtek,

Undo pane is not shown in the release version 1.8.0, although the history is still stored internally and is used when Undo/Redo buttons are pressed.

However, the history will be discarded, when user completes an action that cannot be undone, but which affects the elements for which the history is stored.

hey Alexey,

Understood, however chunk.model.cropSelection() did not remove undo history prior to one of the recent builds? That is basically the same as clicking the Crop button which is undo-able.

wojtek

  • Sr. Member
  • ****
  • Posts: 284
    • View Profile
Re: chunk.model.cropSelection() deletes entire Undo history [1.8.0]
« Reply #3 on: February 20, 2023, 06:40:18 PM »
Hey,

This is still broken in 2.0.0. For reference if you use chunk.model.cropSelection() via code in 1.6.6 you can undo it after the process finishes. In 2.0.0 that is not possible.

Can you guys fix this?