Commit Graph

400 Commits

Author SHA1 Message Date
Antony Riakiotakis
3509daa1c1 Fix #31178, the cause is hidden and selected faces would return NULL as UVElements. To avoid checking the whole contingency of UV synch selection + face selection + face hidden, added a NULL check. 2012-05-03 10:56:35 +00:00
Campbell Barton
933b3166fc style cleanup: guys - set your editors to tabs! 2012-05-01 17:51:03 +00:00
Brecht Van Lommel
3ee136910d Fix #31147: uv unwrap not scaling islands properly to match relative size. 2012-05-01 10:28:50 +00:00
Campbell Barton
a5af5e8f50 style cleanup: re - http://wiki.blender.org/index.php/Dev:Doc/CodeStyle#Braces_with_Macros 2012-04-30 16:22:40 +00:00
Campbell Barton
112162e09e code cleanup: header cleanup 2012-04-30 14:24:11 +00:00
Brecht Van Lommel
99c29814f0 Fix missing redraw when using circle select in uv editor, IRC report. 2012-04-30 13:45:24 +00:00
Campbell Barton
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
Campbell Barton
950ed69297 code cleanup:
- replace inline face UV center calc.
- use const float[3] for mesh and uv functions.
- remove unused define
2012-04-28 08:29:20 +00:00
Campbell Barton
dc313ff00d add back lasso tool in the UV editor (Ctrl+LMB / Ctrl+Shift+LMB) 2012-04-28 01:59:21 +00:00
Campbell Barton
dbe68289f4 fix for select flushing in UV-sync-selection mode (regression from 2.62), both border select and circle select failed in edge and vertex mode (though de-selecting worked ok). 2012-04-27 12:44:32 +00:00
Campbell Barton
4469ab9857 code cleanup:
- move lasso functions into BLI (were in 3D view but UV editor needs access)
- remove unused UV functions (ones that assumed 3-4 sized UVs only)
2012-04-27 07:26:28 +00:00
Campbell Barton
d53133d25f fix for border de-selecting with sync selection 2012-04-25 11:31:01 +00:00
Campbell Barton
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
Campbell Barton
d92a4ceb35 code cleanup: dont use bmesh operator flags outside a bmesh operator, use hflag tagging instead. 2012-04-24 20:33:39 +00:00
Campbell Barton
e017621f6a code cleanup: rename UV functions to closer match bmesh api 2012-04-24 19:59:06 +00:00
Campbell Barton
25b6260c58 bmesh: fix selection flushing when editing UV's and sync selection is enabled, and edge mode is in the 3D view. 2012-04-24 19:53:00 +00:00
Campbell Barton
b5be51c508 bmesh/uv editor
- selecting in UV window with sync-sel enabled now sets/validates sel-history.
- border de-select now clears sel history.
2012-04-24 19:28:18 +00:00
Campbell Barton
ceffa6e1fa code cleanup: comment unused functions (removed one which isnt useful anymore). 2012-04-23 07:32:13 +00:00
Campbell Barton
16ff7e40e6 code cleanup: change C naming convention (so py and C api match), eg:
C: BM_face_calc_area(f), Py: BMFace.calc_area()
2012-04-23 01:19:50 +00:00
Campbell Barton
5c89138684 style cleanup: comments 2012-04-22 11:54:53 +00:00
Campbell Barton
8765dfccf7 style cleanup: correct typos 2012-04-21 14:14:58 +00:00
Campbell Barton
1615b46963 style cleanup 2012-04-21 13:37:26 +00:00
Campbell Barton
6701933f5c style cleanup 2012-04-21 12:51:47 +00:00
Campbell Barton
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
Campbell Barton
b40476455e code cleanup: remove unused BMesh args. 2012-04-19 14:38:09 +00:00
Campbell Barton
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
Campbell Barton
75b869e428 style cleanup: BM_ITER / BM_ITER_INDEX / BMO_ITER 2012-04-19 11:44:12 +00:00
Antony Riakiotakis
baba9c441e Fix: Mark seams in uv editor didn't work 2012-04-18 22:27:24 +00:00
Campbell Barton
195d6c1b1a minor speedup for scanfill, dont calculate the normal if its already known - use for editmode ngon filling. 2012-04-16 18:24:49 +00:00
Campbell Barton
bd613739ae bmesh todo: remove unused code. 2012-04-16 10:29:59 +00:00
Campbell Barton
0635f8101c make scanfill threadsafe (wasnt threadsafe before BMesh merge but before the merge it didn't need to be) - now rendering uses its better if its threadsafe. 2012-04-16 06:48:57 +00:00
Campbell Barton
79693e4543 code cleanup: avoid confusion with incorrectly named argument to BLI_edgefill(), was 'mat_nr', now 'do_quad_tri_speedup' 2012-04-16 05:03:04 +00:00
Campbell Barton
034d5194ab fix [#30967] Straighten X/Y in the UV/Image Editor bug
patch by Bastien Montagne, checked this works the same as 2.62.
2012-04-16 01:55:25 +00:00
Brecht Van Lommel
cda6230a85 Fix #30952: uv unwrapper not working as well as 2.62 on some topologies, let the
unwrapper itself decide how to split quads since it has specific checks for the
best unwrapping split built in, gives better results.
2012-04-15 10:31:07 +00:00
Brecht Van Lommel
46146ecd08 Tweak knife/unwrap tesselation code a bit, it uses a random offset, now also
seed the random number generator to at least make these operator repeatable.

I don't know why it is using random numbers at all, we should really not be
doing this in my opinion, but I don't understand why it's being done so won't
remove it.
2012-04-15 10:06:36 +00:00
Brecht Van Lommel
637387b8ac Fix #30949: live unwrap when marking seams did not work with bmesh. 2012-04-15 09:20:42 +00:00
Campbell Barton
0d9fa93581 fix for editmode UV hiding with edges, was also using deprecated flag (UV_SELECT_FACE) 2012-04-13 13:31:41 +00:00
Campbell Barton
6046500ee5 - startup.blend's temp dir was pointing to sergeys user dir, now point to /tmp
- fix error in ctodata.py (was adding dummy bit)
- make UV hide from last commit more readable.
2012-04-13 08:18:54 +00:00
Campbell Barton
05bdc46641 fix [#30923] Hide Unselected in the UV/Image editor does nothing 2012-04-13 07:18:26 +00:00
Campbell Barton
58993c3f37 bmesh - UV editor: check if faces are visible before hiding them (was done before bmesh merge). 2012-04-13 06:54:37 +00:00
Campbell Barton
b2667970d2 style cleanup: uv editor 2012-04-13 06:33:59 +00:00
Campbell Barton
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
Campbell Barton
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
Brecht Van Lommel
e5579ac505 Fix #30895: uv editor snap selected to adjacent unselected not working correctly,
was apply to unselected uvs too.
2012-04-11 08:37:38 +00:00
Campbell Barton
9ae0523921 fix [#30897] UVEditor: Snap Cursor to Selected
was writing the 3rd component of a 2D vector.
2012-04-11 07:47:09 +00:00
Brecht Van Lommel
8adc276885 Fix #30879: uv editor hide did not work with the mesh in vertex/edge select
mode, selection was not flushed down to faces.
2012-04-10 13:19:16 +00:00
Campbell Barton
cb6ab1df5e uv editor: don't draw active face stipple when the face isn't visible (error from bmesh merge), also replace 'em->bm' with 'bm' var while drawing. 2012-04-10 00:22:26 +00:00
Campbell Barton
95654de53d fix [#30880] Selected to Adjacent Unselected broken 2012-04-10 00:09:54 +00:00
Campbell Barton
320aa33e65 rename MPoly vars called mface or mf, to avoid confusion with MFace types. 2012-04-03 23:40:24 +00:00
Brecht Van Lommel
ff14479983 Fix #30796: uv vertex coordinates panel in uv editor incorrectly taking into
account selected uvs from hidden faces.
2012-04-03 19:08:06 +00:00