a15b3c4d11
Code cleanup: use bool
2014-04-11 11:33:29 +10:00
617557b08e
Code cleanup: remove TRUE/FALSE & WITH_BOOL_COMPAT define
2014-04-01 15:22:28 +11:00
caf8684b50
EditMesh: Support contracting the selection as well as extending
...
This allows for holding ctrl while switching from face->edge modes to
select an edge-ring.
2014-03-17 00:25:34 +11:00
57dba73917
View3d: take pixelsize into account for selection distance
2014-03-11 15:34:19 +11:00
276ef3b3b5
Editmesh: Toggle between all edge-loop boundaries when selecting
...
Now Alt+RMB,RMB will select all connected boundaries.
There are times when you just want to select an entire boundary loop
ignoring face topology, previously there was no way to do this.
2014-03-07 10:39:31 +11:00
a7a7a032a6
Mesh: loopselect return cancelled when no selection made
...
also un-indent main function body.
2014-03-07 10:39:30 +11:00
081a3412a9
Paint API: add BKE_paint_select_elem_test: to check on paint selection
2014-02-26 16:00:54 +11:00
77290fccd5
Fix random select in edge/face mode
...
patch D336 from Henrik Aarnio
2014-02-21 08:51:30 +11:00
b3afbcab8f
ListBase API: add utility api funcs for clearing and checking empty
2014-02-08 06:24:05 +11:00
42b68c2b1d
BMesh: optimize loop_find_regions, reserve array size
2014-02-02 17:41:59 +11:00
7ae1949517
Select Random: add option to de-select
...
also made metaball operator behave like the others.
Path originally from Walid Shouman, with own edits.
2014-01-13 20:39:12 +11:00
6734936c13
RNA API: use bool's for enum itemf callbacks.
2014-01-04 18:10:01 +11:00
63caaa2b12
Code Cleanup: rename vars for detecting change to be more consistent
...
rename change/is_change/is_changed/modified -> changed
also use bools over int/short/char and once accidental float.
2013-11-26 06:39:14 +11:00
dee671276d
rename BM_vert_at_index -> BM_vert_at_index_find (since this searches the mempool).
...
needed for other changes - coming.
2013-10-27 10:01:35 +00:00
3f5be1ef0a
fix for select linked walking over the same faces multiple times. (caused gset assertion).
2013-10-10 23:18:37 +00:00
03602dc158
use BLI_bitmap for editmesh selection buffer to save some memory.
2013-10-10 22:30:16 +00:00
5dc9db3533
fix for lasso failing/glitches on overlapping lines, replace scanfill with 2d pixel filling for drawing and selection.
2013-10-04 15:02:05 +00:00
4cb4dc8432
remove assert recently added to EDBM_backbuf_check and explain odd logic.
2013-10-03 07:02:52 +00:00
d6a52c67d5
fix [ #36861 ] In face select masking circle select selects all when out of focus.
2013-09-30 07:58:38 +00:00
3b72f1824c
rename positive_mod to mod_i, make it work with nagative numbers (matching pythons modulo), and use in a few more places.
...
allow mesh-checker-deselect to have a negative offset.
2013-09-05 20:54:32 +00:00
fa3481cf07
correct own error in recent linked stack edits.
2013-08-18 04:06:49 +00:00
5fafc222f0
style cleanup
2013-08-17 08:21:40 +00:00
d7cc2be2b7
add linklist stack macros, use where over allocating an array was previously done.
2013-08-17 05:33:55 +00:00
72f2917032
bmesh: skip error checks when building in release mode (minor speedup),
...
also more strict use of BLI_array_declare(), only allow after array is declared.
2013-07-28 09:05:27 +00:00
cdac157f4c
code cleanup: use iterator macros, and replace BM_LOOPS_OF_FACE with direct loop access when converting a bmesh to a mesh.
2013-07-24 18:38:55 +00:00
8ef3b51325
fix [ #36256 ] Checker Deselect, failed with de-selected active face.
2013-07-23 18:49:44 +00:00
78490c0a7b
Fix [ #36259 ] Select linked flat faces with Shift+Ctrl+Alt+F does not work in ver. 2.68
...
Code was cleaning BM_ELEM_TAG flag of verts, when it actually uses the one of faces...
2013-07-23 18:03:40 +00:00
7db1d6556d
code cleanup: add break statements in switch ()'s, (even at the last case).
2013-07-21 08:16:37 +00:00
49c61e169b
misc edits
...
- fix for missing None check with recent 'Hidden Wire' draw option.
- avoid int overflow with mesh selection.
- remove ';' outside of functions.
2013-07-20 15:07:57 +00:00
a2492e0603
style cleanup: braces/indentation
2013-07-19 16:44:17 +00:00
d0ce73c548
fix [ #35939 ] [Edit - Vertex mode] [Select]-[Mirror] did not returns right result.
2013-07-01 21:56:59 +00:00
77e0709e48
Fix #35551 : the topology mirror setting affected shape key and vertex group but
...
this was confusing as there was no setting visible for it. Now these menus
contain an entry to mirror without and with topology mirror.
2013-06-28 17:13:09 +00:00
ff39d7b4bf
fix for incorrect selection when running MESH_OT_loop_to_region, running wire-frame operator directly after would crash.
2013-06-27 05:19:25 +00:00
bb42703ea3
- remove edge collapse loop operator (now replaced by dissolve).
...
- fix missing null pointer check from own recent changes.
- add asserts if BLI path functions are given wrong id's
2013-06-27 01:10:19 +00:00
781184562b
add api calls for BM_mesh_active_vert/edge_get.
...
inspecting the edit-selection inline was cumbersome.
2013-06-24 04:51:56 +00:00
1ed8343d6d
add axis option to EDBM_verts_mirror_cache_begin
2013-06-19 21:23:00 +00:00
72abfbfc95
fix automerge + mirror, previously only the selected verts would auto-merge.
2013-06-16 05:13:12 +00:00
666c8b51ca
changes to mirror tools
...
- give feedback on how many mirror verts succeed/fail (for select mirror, shape key mirror, weight mirror)
... when a mirror failed it was confusing and not obvious what was going on.
- slight change to select mirror, now center vertices will remain selected.
- speedup to EDBM_verts_mirror_cache_begin, cache customdata layer offset.
2013-06-05 05:58:51 +00:00
48fd740096
edit-mesh improvements to select shortest path
...
- Ctrl+RMB only worked for edges & faces
- Menu item 'Select Shortest Path' only worked for vertices.
Now Ctrl+RMB works for vertices and the menu item works for verts/edges/faces (depending on the current selection).
2013-06-04 01:23:51 +00:00
3ea4d7ff01
fix [ #35603 ] Crash with "Tag Freestyle Edge Mark"
2013-06-02 23:58:53 +00:00
083115c5e7
bmesh optimization: use offsets for deform-vert lookups to avoid customdata layer lookups within loops.
2013-05-27 12:42:48 +00:00
b7c36b9511
bmesh: replace array reallocation with a single face array and use STACK macros.
2013-05-25 21:24:09 +00:00
562ed2b42e
add in asserts when rv3d->viewmatob, rv3d->persmatob are not initialized.
...
This is often hard to spot since in many cases it works correctly even
when not initialized but may still fail in other situations.
2013-05-08 13:00:52 +00:00
586a97166f
replace error reports with poll() function for editmesh select ungrouped
2013-05-01 06:07:26 +00:00
2cda8a9efb
fix for select ungrouped vertices not flushing, also group select menu items more logically.
2013-05-01 05:59:58 +00:00
93e3107806
select loose wasn't working very usefully if you only wanted to select loose verts, now select loose verts/edges/faces depending on the selection mode.
2013-04-29 16:59:53 +00:00
5018ea5e29
real fix for [ #35097 ], (curve cap flipping).
...
previous commit was incorrect, the face flipping depended on the orientation of the curve.
fix by passing the bevel direction to the fill function so we can have a reliable front/back.
This also gives some speedup for all curve filling since we can avoid calculating the normal since its already known.
2013-04-26 21:04:12 +00:00
51cb077f16
add missing call to flush selection on selecting manifold geometry.
2013-04-16 15:45:30 +00:00
37e73aa368
code cleanup: use BKE naming conventions for functions in BKE_editmesh.h and BKE_editmesh_bvh.h
2013-04-16 05:59:48 +00:00
afb4b65167
Random number generator: replace a bunch of usage of the global random number
...
generator with a local one. It's not thread safe and will not give repeatable
results, so in most cases it should not be used.
Also fixes #34992 where the noise texture of a displacement modifier was not
properly random in opengl animation render, because the seed got reset to a
fixed value by an unrelated function while for final render it changed each
frame.
2013-04-15 23:12:40 +00:00