Commit Graph

96 Commits

Author SHA1 Message Date
c6f07c651e rename defines to upper case. 2012-02-06 22:57:25 +00:00
0adcdbc77d Code Cleanup: comment, remove or use unused functions. 2012-02-06 09:39:47 +00:00
e80c80dc51 replace some hard coded limits with defines 2012-02-06 05:18:08 +00:00
11d5a2d2eb Code Cleanup: style change only 2012-02-05 15:55:28 +00:00
917714acf7 svn merge ^/trunk/blender -r43345:43381 2012-01-15 09:16:39 +00:00
8a8cb2c3ef minor formatting edits 2011-12-21 04:56:04 +00:00
57e6ac47a0 use TRUE/FALSE rather then 1/0, no functional changes. 2011-12-21 03:33:32 +00:00
5c377f5f87 Fix #29539 Crash on shortest path 2011-12-08 12:53:43 +00:00
0b805fcb5d remove double lookus in BM_GetCDf/BM_SetCDf, also remove bm_cdata_get_single_float which was a duplicate of BM_GetCDf. 2011-12-06 08:07:12 +00:00
063dd4f60a svn merge ^/trunk/blender -r42197:42221 2011-11-28 17:09:13 +00:00
565e2b4d73 use faster method of getting vert/edge/face indices which uses BLI_mempool_findelem to skip over chunks rather than going over every element 2011-11-27 02:05:46 +00:00
b9d270cc58 fix [#29177] Select linked in face select mode doesn't stop on seams 2011-11-24 01:33:41 +00:00
a89071333e per type restrict masks for walkers
- vert/edge/loop/face each get their own restrict masks
- any invalid restrict masks (which are not supported by the walkers) raise an error.
2011-11-24 01:07:36 +00:00
052d892207 small changes to iterator, preparing for bigger changes.
- renamed flag to layer
- added define to make dummy layer args easier to tell apart from flags
2011-11-24 00:14:13 +00:00
9087cb91d4 quiet compiler warnings for BLI_array defines, split BLI_array_append into BLI_array_append / BLI_array_append_r, the latter returning the new array location. 2011-11-16 17:09:41 +00:00
da849bbfc0 prepare for flagging the bmesh has having invalid index values, so we can skip looping over all elements if its already valid.
- went over every BM_SetIndex call and added comments about its use, if its setting dirty values or correct ones.
- replace loops over all elements _just_ to set index values, with a new function, BM_ElemIndex_Ensure(...), this will eventually only initialize values when they are dirty.
2011-11-16 12:38:40 +00:00
261c1679b4 fix *Redo unsupported* messages in operator panel when using edgeloop/edgering select 2011-11-06 15:42:12 +00:00
85e0609c54 use char for BMHeader type and flag (saves 2 bytes per edge/loop/vertex/face)
also found mouse_mesh_shortest_path was casting edit selecton to the wrong type.
2011-11-01 14:36:23 +00:00
a1e95e2e18 replace as many uses of BM_Get/SetIndex as possible with tagging with a temp flag, some uses need index values to be set, so this will need more effort to replace (crazy space and solidify for eg). 2011-11-01 12:51:38 +00:00
61b699bf9b remove $Id from headers 2011-10-24 23:32:24 +00:00
30141b4464 select boundary loop tool (aka region to loop) switches to edge select mode if the mode was face select 2011-10-15 14:47:37 +00:00
9d0186fc6a Refactor removedoubles (merge 3 different version of code to find doubles into one). Also fixes a minor bug where automerge would merge any two vertices (not just selected verts into unselected verts like trunk) and fixes the edge slide crash (bug 28688) 2011-10-09 03:05:36 +00:00
dfaf0b9e7b Fix a memory leak in loop-to-region tool 2011-09-30 15:15:57 +00:00
b4d0aa8101 fix for build error with GCC 2011-09-27 11:38:55 +00:00
8cc095696a Bread-first bmesh walkers:
- walkers can be run in breadth-first order or depth-first order (previously there was only depth-first)
- walkers keep track of current depth (with this + breadth-first, select nth implementation is now trivial)
- new connected vertex walker (similar to shell walker, but returns vertices instead of edges)
- shell walker can be started from a vertex (in which case the walker starts by queueing all the edges incident on the vertex) or from an edge (walker starts by queueing the single edge)
- bug fix for walker reset (was emptying states, but not clearing the visithash)
- bug fix for select nth (indexing for deselection was walking through *all* connected elmeents, to match trunk it should only walk through *selected* connected elements)
2011-09-26 03:38:30 +00:00
f19cb3fc6b undo of 40542 (meant to make two separate changes) 2011-09-26 00:32:45 +00:00
6cd42ebe18 Fix dissolve crashes.
For some cases, this will make dissolve work. For others dissolve will still fail (report unable to dissolve, not crash) in some cases. To get dissolve to work in these cases we need to define what happens when you dissolve a disk that has faces which share more than one edge.
2011-09-26 00:27:25 +00:00
38132d68d6 fix script error and quiet warnings about "." description ending. 2011-09-23 13:31:48 +00:00
7126a4699e svn merge ^/trunk/blender -r40367:40368 --- raddish weight paint merge 2011-09-22 16:09:27 +00:00
d48ee9d035 Submit of patch [#28568] BMesh: make active element highlights work 2011-09-13 13:41:20 +00:00
7abb4ae782 Patch 28537 from Andrew Wiggin, fixes second issue in 28492 (edge ring deselect not working 2011-09-07 08:34:15 +00:00
2448f8caa9 code cleanup - commant/remove unused vars and reduce scope. 2011-09-07 06:49:20 +00:00
e351082114 patch [#28518] BMesh: fix 28491 (implement edge tag shortest path)
from Andrew Wiggin (ender79)
2011-09-06 03:32:58 +00:00
fc4ed9bcfb Patch 28492 from Andrew Wiggin (ender79) to fix loop deselect problem (bug 28492)
This disables, at least for now, some code that was marked as 'not 100% reliable' that was breaking trunk behavior.
2011-09-04 14:59:20 +00:00
bffd4b5eee patch [#28463] BMesh: fixes for removedoubles and friends
from Andrew Wiggin (ender79)
2011-09-02 06:48:14 +00:00
eaf761cab9 remove unused args 2011-08-29 01:05:35 +00:00
e1315ef15a implement select nth, separate loose parts, and a few bug fixes
This code is from Andrew Wiggen (ender79) and reviewed by me.

His comments:

Implements some tools that were marked TODO:
- select nth
- separate loose parts

And also fixes a few bugs;
- extrude and move on normals causes faces to disappear until the move starts
- hiding verts/edges/faces does not deselect them
- deleting a selection sometimes deletes too much (e.g. a solid cube and a wire cube build of only edges, join them on a single edge, select only the faces of the solid cube and delete, some of the deselected edges from the wire cube were also being deleted)
2011-08-28 17:15:24 +00:00
3e625d1efe bmesh todo: material mesh select/deselect added. 2011-08-16 18:45:03 +00:00
211db03791 Brought back loop multiselect:
----------------------------------------------
Loop multiselect operator brought back. It can
be accessed via the select->edge loop and
select->edge ring menu entries or through the 
ctrl-e edge specials menu.
2011-06-26 01:11:03 +00:00
4cc347c93c Fix for select non manifold:
----------------------------------------------
Select non manifold was not working properly
because BM_Nonmanifold_Edge considered border
edges to be manifold.
2011-06-21 01:14:21 +00:00
08d6932c86 svn merge -r36900:37028 https://svn.blender.org/svnroot/bf-blender/trunk/blender 2011-05-31 05:11:04 +00:00
671cb93f1b svn merge -r36801:36840 https://svn.blender.org/svnroot/bf-blender/trunk/blender 2011-05-24 04:35:21 +00:00
1d8fa52883 rename BMINDEX_GET/SET to BM_GetIndex/BM_SetIndex 2011-05-13 10:49:26 +00:00
6cc8f734c0 svn merge -r36603:36651 https://svn.blender.org/svnroot/bf-blender/trunk/blender \nwith some manual edits 2011-05-13 04:04:53 +00:00
521d824371 =bmesh=
1. Removed pinning, at least until after trunk
reintegration (it's a usefull feature, but
incomplete).

2. Ripped out the subclassing code I originally
wrote so bmesh would be more usable for modifiers 
(I ended up improving CDDM instead).

3. Inlined some of the macros in bmesh.h, still need to
do the macros in bmesh_operator_api.h.

4. Removed the BMESH_ITER_*** macros (except for BMESH_ITER_INDEX).
   They were too clunkly to be worth it.
2011-05-12 01:55:08 +00:00
88c3781b7c missing free call in rotsys_make_consistent 2011-05-12 00:20:35 +00:00
cd55aeaf6d set many vars & functions as static,
also commented invalid pin theme alpha assignment so bmesh branch builds with -Werror
2011-05-11 02:14:43 +00:00
bcdd9d236c fixed 4 uses of un-inirialized vars + some compiler warnings. 2011-05-10 23:48:09 +00:00
5ba0c2c049 tag unused arguments, quiet some warnings 2011-05-09 14:32:55 +00:00
5a2a3d7d82 more syncing with trunk, also cleared many warnings with gcc4.6 2011-05-09 04:06:48 +00:00