Blender Git Commit Log

Git Commits -> Revision 4b859e9

Revision 4b859e9 by Campbell Barton (master)
February 22, 2011, 02:47 (GMT)
bugfix/workaround [#25629] Add torus with autmatic edit mode duplicates mesh after >Aling to View.

adding meshes in C does:
Add Empty Mesh -> Enter Editmode -> Create Mesh

while python does:
Add Generated Mesh -> Enter Editmode


problem with this is there is no empty undo state for undo-redo to use so it always gave a duplicate mesh on redo-ing.
workaround by adding an empty mesh, do an undo push, and join the generated mesh into the empty one.

this would be fixed if undo stack spanned modes.

Commit Details:

Full Hash: 4b859e91cb83be43a92cf4df8ac7690778853142
SVN Revision: 35046
Parent Commit: 36618a0
Lines Changed: +14, -0

1 Modified Path:

/release/scripts/modules/add_object_utils.py (+14, -0) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021