Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom Model Data Windows Undo Not working as exepcted #4815

Open
kevinsaucier opened this issue Sep 18, 2024 · 2 comments
Open

Custom Model Data Windows Undo Not working as exepcted #4815

kevinsaucier opened this issue Sep 18, 2024 · 2 comments

Comments

@kevinsaucier
Copy link

I was originally going to file this an enhancement, but I just found a bug as well so figured I'd put them together. 😬

  1. Bug: When numbering a model, if you add a number to an existing model (when renumbering, for instance) and then Undo, it removes that number from multiple places in the grid. For instance, if I'm renumbering and number 1-17, then Undo, it removes the 17 I just clicked as well as any other 17's from the rest of the grid.

  2. Kind of a bug: When renumbering and hitting undo, one would expect the Undo to put back the previous number. I figured maybe it was a 2 part process and a second Undo would put the previous number back, but that just removes the previous previous number. Repeating undo continues removing numbers without replacing them. This is unexpected behavior and causes you to lose where the numbers were. This is especially annoying when you're renumbering an existing model and intend to use it to remap submodels/states/faces as the pixels have to be in the exact same place.

  3. My enhancement request was that there was no Redo to go forward again after undoing. 😁

To reproduce, simply open a model (I used the EFL Snowglobe), turn on number and click a cell to enter a 1, then Ctrl-Z to undo. Both the 1 you entered as well as the 1 that was already there disappear. I verified on the nightly build from last night.

As always, thanks!

@computergeek1507
Copy link
Member

If you intentionally have multiple nodes of the same number, that is kind of an edge case. I thought it was more important to remove duplicates as it's more likely a mistake. It's also not a true undo/redo, it was just intended as a increase/decrease of numbers box without clicking for keyboard people. To write a full backend that tracks state for true undo/redo seemed unnecessary

@kevinsaucier
Copy link
Author

Understood on the full backend for undo/redo, that was a wish. :)

As for having multiple nodes be an edge case, I'd respectfully disagree. Other than the one time a vendor (hopefully) creates the base model for a file, I'd think the vast majority of the time, it's end users either fixing or modifying an existing model, which almost certainly will result in duplicate nodes temporarily. As it currently stands, I'd argue that the 'Undo' functions does more harm than good by removing 'nodes' that have nothing to do with what you're actually working on with no indication that it happened. If the intent was mostly to decrease the numbers box, I think it makes more sense to just remove the part of the function that is actually 'undoing' the entry of the number as it's not really functioning as one would expect Undo to do. JMHO.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants