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
be71c46b24
code cleanup: minor BMESH_TODO's, some were left in even though they were done/invalid.
2013-04-15 04:34:14 +00:00
6da961775f
code cleanup: rename BKE_tessmesh -> BKE_editmesh, rename EditDerivedBMesh.tc -> em. ('tc' is odd name which isn't used elsewhere).
2013-04-13 20:31:52 +00:00
89926a0598
svn merge ^/trunk/blender -r55776:55813
2013-04-05 15:42:31 +00:00
1c3c4f3954
code cleanup: use bool's for vgroup and editmode.
2013-04-05 14:58:30 +00:00
5524ed9ba2
Merged changes in the trunk up to revision 55700.
...
Conflicts resolved:
source/blender/editors/mesh/mesh_intern.h
2013-04-01 13:47:19 +00:00
6d8e25dfdc
code cleanup: split editmesh_tools.c, into inset, bevel (both modal operators) and moved extrude operators into their own file.
...
also move some selection operators from editmesh_tools.c into editmesh_select.c
2013-04-01 10:18:01 +00:00
385c72f5f2
Merged changes in the trunk up to revision 55546.
...
Conflicts resolved:
source/blenderplayer/bad_level_call_stubs/SConscript
Partly reverted changes to intern/cycles/blender/addon/ui.py in revision 52899
to make it easier to merge trunk changes.
2013-03-24 12:13:13 +00:00
dd0e2da784
code cleanup: use booleans and const's for operator vars.
2013-03-22 04:40:45 +00:00
3966722057
code cleanup: misc warnings/style
2013-03-21 02:58:21 +00:00
f8611bac8f
- add knife project to toolbar.
...
- when running knife project, disable vertex selection since it may select areas between the newly cut regions.
add EDBM_selectmode_disable() function since loopcut does this too.
- (optimization) avoid looping over all geometry when flushing and no selection exists.
2013-03-20 16:03:34 +00:00
e7c15beaf6
code cleanup: use booleans for mesh and selection code.
2013-03-19 23:17:44 +00:00