b51590d55d
code cleanup: bmesh subdivide code - BM_mesh_esubdivideflag() & "esubd" bmesh operator was passing a flag about in a fairly confusing way.
...
since we will eventually have python bmesh operator access better expose this as multiple booleans.
remove remaining editbutflag's
2012-04-23 03:43:02 +00:00
4c4389f6a4
code cleanup: remove editbutflag flag from toolsettings & related defines.
2012-04-23 02:48:05 +00:00
8765dfccf7
style cleanup: correct typos
2012-04-21 14:14:58 +00:00
1c54eaecd8
fix [ #31049 ] New Faces (F) always solid shaded
2012-04-21 13:58:29 +00:00
b26865ba99
code cleanup: prefer BM_face/edge/vert_select_set() over BM_elem_select_set() when the type is known (saves switch statement check on the type).
...
Add asserts so the correct types are ensured.
2012-04-20 16:55:47 +00:00
384f87cd1c
rip tool wasnt working on a single edge selection in some cases (own error in recent fix).
2012-04-19 23:16:57 +00:00
e387ccdb42
bmesh inset: add depth option (make use of relative and even offset options)
2012-04-19 19:03:15 +00:00
c7f8af329b
BMESH_TODO: randomize vertices working again.
...
That whole "element re-arrange" area could use some love, though (e.g. make a single vert operator with more options, as faces; and make faces work in edit mode, probably no more reasons to switch to object mode?). Post-release TODO, anyway.
Also spotted a glitch in BLI_rand code, imho, which makes first element of an array not guarantied to be shuffled by BLI_array_randomize()... No correction though, as this might/would affect other parts of the code!
2012-04-19 18:53:32 +00:00
e730c1af6d
committed check by mistake, its not needed.
2012-04-19 17:26:22 +00:00
475ecbb0ce
remove BM_ITER, BM_ITER_INDEX macros, use ELEM or MESH variants only (the maceros had unused args in both cases).
2012-04-19 13:47:58 +00:00
3ef7943910
code cleanup: first step to replace BM_ITER BM_ITER_INDEX macros.
2012-04-19 12:45:56 +00:00
7cadd242d3
BMESH_TODO: xsort of vertices working again.
...
This commits adds a new function which can remap vertices/edges/faces of a BMesh in a new given order:
void BM_mesh_remap(BMesh *bm, int *vert_idx, int *edge_idx, int *face_idx)
2012-04-19 12:31:39 +00:00
75b869e428
style cleanup: BM_ITER / BM_ITER_INDEX / BMO_ITER
2012-04-19 11:44:12 +00:00
1f01d62d15
more replacement for BM_edge_face_count() use.
2012-04-18 06:57:28 +00:00
09f722740f
move rip out into its own file
2012-04-17 10:25:23 +00:00
3486223607
code cleanup: remove/comment some unused code.
2012-04-17 05:09:37 +00:00
37a79f4727
fix [ #30972 ] Editmesh split by materials not working.
2012-04-16 13:49:04 +00:00
4ebcae7158
bmesh todos:
...
- dont do name based object lookup to find the object for a mesh undo state (possibly object is renamed inbetween undos which would crash)
- remove some todo comments for things that are working as they should.
2012-04-16 09:34:43 +00:00
97538bd9ed
Fix #30960 : various mesh operators were missing tooltip descriptions.
2012-04-15 10:07:57 +00:00
637387b8ac
Fix #30949 : live unwrap when marking seams did not work with bmesh.
2012-04-15 09:20:42 +00:00
e5bda9f827
Fixed some UI message typos (spotted by Leon Cheung, thx).
2012-04-14 15:44:31 +00:00
e9358a3806
bmesh api changes:
...
- remove recently added BM_mesh_select_flush_strip(), functions purpose wasn't clear.
- add BM_mesh_elem_hflag_disable_test(), BM_mesh_elem_hflag_enable_test()
to match existing BM_mesh_elem_hflag_enable/disable_all(), these take a hflag to test before editing each element.
This replaces the need for BM_mesh_select_flush_strip().
2012-04-13 04:02:26 +00:00
8c70caf966
fix for UV reveal (wasnt selecting all verts because check for unselected vert was incorrect after selecting the first face).
2012-04-13 03:41:07 +00:00
c74ace03e0
fix [ #30907 ] Inset tool with Select Outer disabled does not allow translation of new faces
...
inset with select-inner faces gave invalid selection.
also correct spelling in some comments.
2012-04-12 07:40:47 +00:00
93e00af7e5
Fix #30850 : bevel tool only works on edges but tooltip indicated it worked on
...
vertices too, fixed tooltip. Also add bevel to edge menu since it works edge
based.
2012-04-10 15:51:22 +00:00
f5bb4635c6
fix [ #30852 ] Wrong Material ID applied for the new faces
2012-04-09 05:17:07 +00:00
68daca1cbf
Fix [ #30853 ] "Merge At Last" is missing in multicomponent mode
...
Mode selection inverted in multicomponent mode including vertices.
2012-04-07 23:31:15 +00:00
831f0e6283
option to have inset face select the interior faces (mango request)
2012-04-06 10:33:45 +00:00
3a33568261
patch [ #30812 ] Couple operator tooltip proposals (editmesh_tools.c)
...
from Sebastian Nell (codemanx), with some edits.
2012-04-05 07:05:44 +00:00
48059cc329
fix problem with select invert - flush selection.
...
previously this wasnt needed because doing an undo push would flush the selection.
2012-04-02 09:07:02 +00:00
7d9f0232df
adding back boundary inset support. was disabled because at one point it was unstable.
2012-04-02 08:58:26 +00:00
7d184567d7
fix [ #30758 ] bmesh: unable to rip a single vertex
...
this also adds the ability to rip disconnected face fans apart which is handy.
2012-04-02 08:35:12 +00:00
4253e52771
fix [ #30768 ] Project from View UV map tool includes hidden geometry r45323
...
select all could select hidden faces, now BM_mesh_elem_flag_enable/disable_all takes an argument to skip hidden elements.
2012-04-02 04:45:44 +00:00
c7aed8b2af
For BMesh functions that test flags, add enabled/disabled variants.
2012-03-30 17:30:49 +00:00
f87c5b3453
fix [ #30715 ] bmesh: select linked not ignoring hidden verts/edges/faces
...
add optional flag to ignore hidden elements.
also remove loop mask flag - since it wasnt used and vert/edge/face is enough.
2012-03-29 13:09:07 +00:00
a173508f49
converting a mesh to an undo mesh now skips using bmesh operator.
2012-03-29 03:06:42 +00:00
8aa42f309c
print error if rip does nothing (rather then grabbing the unripped verts as it did before)
2012-03-28 08:00:58 +00:00
f9fd5439eb
code cleanup: Ctrl+Click extrude - replace inline axis/angle to matrix conversion with a call to axis_angle_to_mat3()
2012-03-28 06:34:18 +00:00
534f4ddb4d
fix for vertex rip
...
wire edges connected to the vertex would confuse vertex rip.
- was only checking verts first edge had a face, this is incorrect since other vert-edges may have a face.
- wasn't checking of edges connected to the vertex were hidden.
2012-03-28 05:44:38 +00:00
e38bdaa04c
Fix [ #30700 ] Blend from Shape gives only selection for basis shapekey
...
RNA_enum_item_add already sets totitem, so it was increased twice…
2012-03-27 20:45:06 +00:00
bb8fa67f7e
Patch [ #30683 ] Editmesh_tools without descriptions by Harley Acheson (harley)
...
* Some Edit Mesh operators were missing the description after b-mesh merge.
2012-03-27 17:53:31 +00:00
05abdf344b
minor code/style cleanup
2012-03-27 05:03:23 +00:00
09f29c0b70
style/name cleanup: have EDBM_* functions match our style guide and also match BM_ function naming conventions
2012-03-27 04:46:52 +00:00
ca05219f3e
fix [ #30651 ] bpy.ops.object.mode_set(...) editmode removes faces.
...
problem was that BMesh had tessellation call when undo pushes were called.
if python called an operator with no undo push, tessfaces would not be created.
fix this by making it the responsibility of each editmesh operator to re-tessellate, as it is with notifiers and depsgraph.
added EDBM_update_generic() function to add notifier, tag for depsgraph update and optionally re-tessellate.
2012-03-27 00:01:35 +00:00
2743f2bb3f
fix [ #30257 ] bmesh: Rip "V" don't work on end vertex
...
added option to edgesplit bmesh operator to take tagged vertices as well so an edge at a boundary can split without splitting off the boundary vertex.
the behavior/speed of the edge split modifier and tool remainss the same, this is only used for rip.
2012-03-26 12:02:41 +00:00
7c8c1a0718
Minor fixes to recent new UI messages.
2012-03-26 06:20:59 +00:00
48f0444760
style cleanup: editors/mesh - mostly whitespace around operators
2012-03-26 02:56:48 +00:00
94b8b8913e
rename lattice influence to strength from r45144 (other deform modifiers call it strength too)
2012-03-26 00:42:21 +00:00
ab4a2aaf4a
style cleanup: follow style guide for formatting of if/for/while loops, and else if's
2012-03-24 06:38:07 +00:00
2f348d8b5d
style cleanup: mainly for mesh code, also some WM function use.
2012-03-24 02:51:46 +00:00