37ff2a291f
BMesh api function naming.
...
`_set` suffix was used in two ways (confusing)
* to set a flag to be enabled.
* to set a value passed as an argument.
now use enable/disable rather then set/clear for functions which change flags.
also remove BME_weld.c, the file didnt contain much code and the current extrude works well
2012-02-12 18:43:59 +00:00
b6dcdb065d
code refactor, function renaming for bmesh.
...
These changes are to make the bmesh api more consistent and easier to learn, grouping similar functions which is convenient for autocomplete.
This uses similar convention to RNA.
* use face/loop/edge/vert as a prefix for functions.
* use 'elem' as a prefix too for functions that can take any type with a BMHeader.
* changed from camel case to underscore separated (like RNA).
2012-02-12 10:51:45 +00:00
8b43813b69
rename BM_ flags for BMHeader->hflag to BM_ELEM_ to be more clear that these flags apply to bmesh elements.
2012-02-12 06:24:12 +00:00
1dc3536268
mode bmesh include cleanup, remove unused file too.
2012-02-11 10:15:11 +00:00
acd568d751
include cleanup
2012-02-11 08:46:56 +00:00
91390b712a
GPL Header Cleanup
2012-02-11 04:16:17 +00:00
c1070b863b
Style Cleanup
2012-02-10 18:09:19 +00:00
953e50b9a5
fix [ #30129 ] Sharp Edges select function inverted
2012-02-10 07:55:33 +00:00
2dda20a96e
Style Edits only: use TRUE/FALSE rather then 1/0
2012-02-10 06:50:16 +00:00
3aeb7b3150
fix flushing issue when using linked selection picking in editmode.
...
- existing selections that should be un-effected would get incorrectly flushed
2012-02-10 06:26:16 +00:00
3453ec8fae
reviewed selection flushing code, some of this was incorrect, checked all uses against trunk.
...
loop select also was incorrectly calling EDBM_select_flush() rather then EDBM_store_selection(), tsk tsk. (and strange nobody noticed this).
2012-02-10 06:16:21 +00:00
d7b8e7e9bc
Code Cleanup: use less confusing names for selection flushing.
2012-02-10 03:03:42 +00:00
ac4484b239
svn merge ^/trunk/blender -r43976:43995
2012-02-09 01:53:14 +00:00
1fd6088729
Code Cleanup:
...
- use 'oflag' for operator flag arguments.
- use TRUE/FALSE for some bool args
2012-02-07 13:54:16 +00:00
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