61ad024b7e
fix for recent commit that allowed incorrectly flushed face selection.
2013-04-26 18:45:05 +00:00
2e89f6350d
edgeslide fixes/tweaks
...
* re-executing edgeslide was using initial mouse coords only.
* allow negative smooth
* allow more then 10 cuts in RNA limits.
2013-04-26 18:12:05 +00:00
44b9de12b5
add exec() to loopcut so it supports redo.
2013-04-26 17:29:42 +00:00
dfc406fc2c
fix/feature [ #35085 ] Loop cut slide
...
Loop cut slide now works with multicut.
issue is that since edge slide now supports more configurations, cases where loop-cut-slide silently failed before,
now slide (albeit in an awkward way at times).
Fix this my adjusting the selection of after loopcut so edge slide can properly operate on it.
2013-04-26 15:05:19 +00:00
34f9932418
simple optimization, replace BM_face_other_edge_loop() with BM_loop_other_edge_loop() in situations where the loop is known this avoids a lookup.
2013-04-19 01:02:58 +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
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
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
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
aaa8a13c49
code cleanup: use const events for modal and invoke operators.
2013-03-13 09:03:46 +00:00
04d628a5b5
Another huge bunch of new UI translations (some reported by Leon Cheung, thanks!)...
2013-02-19 15:45:56 +00:00
761ac89877
style cleanup
2013-01-15 23:45:41 +00:00
9f2e845181
code cleanup: use BMW_begin insode for loops body.
2013-01-14 09:53:56 +00:00
192e00b0c9
code cleanup: use interp_v3_v3v3()
2012-12-19 04:59:47 +00:00
1f3e3b0d68
include cleanup
2012-12-19 04:49:32 +00:00
d5c2a1f8f4
remove context argument from EDBM_update_generic()
2012-12-12 15:22:54 +00:00
8e9a6871b4
fix for crash in own commit r52911
2012-12-12 15:01:27 +00:00
0b9be70591
typo's and some style cleanup, also added asserts into BLI_vsnprintf and BLI_sprintfN when invalid args are given.
2012-11-28 06:43:04 +00:00
8ecce451ab
bmesh operator naming - use clearer names for args eg: (mat -> matrix, use_singleedge -> use_single_edge)
...
also remove duplicate docs for operator arg formatting.
2012-11-28 00:16:06 +00:00
cf2c459325
Fix #33285 : loop cut is not supposed to cut through triangles/ngons, but it
...
still happened when the loop would go all the way around the mesh with just one
triangle/ngon inbetween to close the loop.
2012-11-26 06:59:59 +00:00
e77e1f183a
fix for uninitialized memory use with numeric input:
...
bevel/inset/marker-move would use uninitialized memory when used as modal operators and pressing backspace after entering values.
2012-11-26 03:47:20 +00:00
a7bee65d38
make smoothing value for ring select compatible with the operator.
...
also wrap long lines in noise.c
2012-11-13 02:45:42 +00:00
6335401a49
todo from 2.4x, add back smooth option to edge loop cut.
2012-11-13 02:28:07 +00:00
6cdb555e6e
bmesh refactor - rename some of the BM_****_share_****_count() functions to BM_***_share_check()
...
some of these were only returning a boolean, others returned a count even though only a boolean was needed.
split some of the functions in two as well where check/count are both needed.
2012-11-09 14:52:05 +00:00
c9dade4fe0
Big i18n commit: add "reports" from bmesh/readfile/tracking/dynapaint (and a few others), and another bunch of UI messages tweaks/fixes, as well as some BKE_report()<->BKE_reportf()...
2012-10-26 17:32:50 +00:00
fec81d9b56
use min_ max_ functions in more places.
...
also fix minor error in MOD decimate when the modifier did nothing the reported face count would be wrong.
2012-10-23 16:21:55 +00:00
f3ece5a108
style cleanup: trailing tabs & expand some non prefix tabs into spaces.
2012-10-21 05:46:41 +00:00
c3ca19800c
refactor screen foreach functions to accept float[2] arguments rather then int pairs.
...
overall means less converting between float and int (and short in some cases).
2012-10-10 01:22:19 +00:00
ad3f01e1d8
fix/workaround [ #31811 ] Subdivision Surface (Apply modifier to editing cage during Editmode) Loop Cut Crash
...
A correct fix for this bug likely involves changuing how operators are called in the event loop but such changes better not be made just before the release.
2012-09-28 11:02:43 +00:00
25c96bc9f3
code cleanup: remove unused macros, commet some which may be useful later - or good to keep for completeness. quieted some warnings and add flags -Wmissing-include-dirs and -Wno-div-by-zero to cmake/gcc
2012-09-20 01:02:39 +00:00
3d9637f60a
Fix [ #32133 ] Numpad Enter key doesnt work with Loopcut (worked in 2.49b)
...
Adding PADENTER to the "OK" keys...
2012-07-17 17:55:23 +00:00
70f50ed8fa
Fix [ #31939 ] Loop cutting a self intersecting face loop
...
Enabled use_gridfill for edgesubdivide called by loopcut. This will break edgeslide in this specific case (intersecting faceloop), but imho makes more sense this way than the other. Very easy to revert anyway, and this should only affect this specific cornercase.
2012-06-29 13:55:25 +00:00
d214b14052
Add missing/incorrect selection flushes.
...
Added selection flush after loop cut, changed select_linked_pick's
flush to use the em selection flag.
Fixes bug [#31715 ] Cases where verts and edges are selected but not
relevant faces
2012-06-11 10:14:46 +00:00
5534701e5d
style cleanup: use capital camel case names for typedef's
2012-06-10 15:20:10 +00:00
4effdf4aff
fix [ #31382 ] Loop Cut and Slide numpad (-)
...
investigation lead to finding 3 bugs here...
- transform key input handling didnt ignore minus key on an unsigned value as it should.
- not being able to set numcuts to 0 made typing in numbers not very useful.
- backspace would set the cuts to an unsigned value.
2012-05-10 07:10:39 +00:00
3ee4be913b
Fix #31139 : fractal mesh subdivide was only working along normal where previously
...
it would displace in all directions. Now there's an operator option to control this.
2012-05-03 10:14:08 +00:00
ef054e165c
style cleanup: format 'for' loop macros the same as for loops, some renaming to BLI_array macros.
2012-04-28 15:14:16 +00:00
47b6b60e5a
code cleanup: no functional change - had both EDBM_editselection_* and BM_editselection_* funcs, replace EDBM_ funcs.
2012-04-24 21:19:18 +00:00
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
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
b40476455e
code cleanup: remove unused BMesh args.
2012-04-19 14:38:09 +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
75b869e428
style cleanup: BM_ITER / BM_ITER_INDEX / BMO_ITER
2012-04-19 11:44:12 +00:00
152b253c2c
remove duplicate notifier event
2012-04-13 15:33:29 +00:00
817a96f243
fix [ #30735 ] bmesh: loop-cut cuts faces isolated by hidden faces
2012-04-03 06:12:04 +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
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
48f0444760
style cleanup: editors/mesh - mostly whitespace around operators
2012-03-26 02:56:48 +00:00
2f348d8b5d
style cleanup: mainly for mesh code, also some WM function use.
2012-03-24 02:51:46 +00:00