|
Sweet Home 3D Forum » List all forums » » Forum: Developers » » » Thread: Modeller 3D plugin » » » » Post: Re: Modeller 3D plugin |
Print at May 19, 2026, 10:50:43 PM |
| Posted by Keet at Mar 23, 2026, 12:56:45 PM |
|
Re: Modeller 3D plugin The ctrl+Z function does a little too much With a single change ctrl+Z should revert that last change. Since there was only one change pressing ctrl+Z again should do nothing, but it executes some weird other changes and never reverts to the original. Look at the Terrain Generator where the arrows at the top execute undo/redo. Those button clicks are the same as ctrl+Z (undo) and ctrl+Y (redo). You can see that a button becomes unavailable if there is nothing to undo or redo. I suspect that an array is used to keep track of the last 20? 50? changes and "walks back" to revert each next change. Redo "walks" up the array until the end. A new change after an undo probably cuts of everything in the array after the current position. You can see that in the TerrainGenerator: do some changes and undo one or two, then do a new change: the redo button becomes unavailable, i.e. the elements in the array after the current position are removed. By-the-way, I absolutely LOVE that it is possible to set exact coordinates for points. That alone makes this a valuable plugin: it exceeds the 8-point limit of the 3D Shape Generator. You don't want to know how many times I just need one or two more points for a shape ![]() ---------------------------------------- Dodecagon.nl 1300+ 3D models, manuals, and projects |
|
|
Current timezone is GMT May 19, 2026, 10:50:43 PM |