c4c75c33d0
Changed structure of the entire feature/code.
...
It should now work in 24 different ways depending on options.
Its not tested in depth yet...
2012-05-23 10:21:57 +00:00
6913e6dd54
Changed functions to check for select on destination instead of source
2012-05-21 18:15:12 +00:00
cc5582decb
Fixed SELECT comparisons
2012-05-21 17:39:56 +00:00
79031d35f1
Added support for replace_selected_weights in all weight transfer fucntions.
2012-05-21 17:00:08 +00:00
8521ca69fa
removed:
...
OBJECT_OT_vertex_group_copy_to_selected_single()
plan for future to implement option as an argument in:
OBJECT_OT_vertex_group_copy_to_selected()
2012-05-17 12:36:07 +00:00
044fd86a15
Some changes to structure as a response to review.
...
(I still havent adressed all issues.)
2012-05-17 12:15:39 +00:00
f4f5254100
cleanup: Style = adding spaces around operators.
2012-05-17 09:47:11 +00:00
daa4b41fb2
Fucntions adjusted to support options.
...
(still lacking feature for selected and option for all)
2012-05-17 08:10:19 +00:00
e7970575ef
bugfix (using _all not _single as postfix for functions);
2012-05-17 03:18:47 +00:00
506057c83b
Fixed readabillity of options framework by adding enums.
2012-05-17 03:15:39 +00:00
0978d1eb9d
Added framework for transfer weight options.
...
vertex_group_transfer_weight_exec() governs all.
Functions renamed/added with _transfer_weight_
as opposed to _copy_by_
This is to reflect changes in parameters and usage as the internal code will change.
2012-05-17 01:42:06 +00:00
f386587e27
Bugfix
2012-05-16 05:16:34 +00:00
9af6397b2d
Function for copying weights interpolated from faces complete!
...
ED_vgroup_copy_by_nearest_face_single()
2012-05-15 02:47:23 +00:00
90759d4243
svn merge ^/trunk/blender -r46559:HEAD
2012-05-15 01:28:12 +00:00
9331b5e92f
Projection onto face added for:
...
ED_vgroup_copy_by_nearest_face_single()
2012-05-13 08:16:41 +00:00
55e627d01e
Removed sqr_dist_v3v3()
...
Now using existing: len_squared_v3v3()
2012-05-13 05:57:32 +00:00
4bee0a42dd
Cleanup.
...
Basis changed/added for:
ED_vgroup_copy_by_nearest_face_single()
Interpolation is still not working 100%
2012-05-13 05:33:25 +00:00
4215071ace
Complete working function added:
...
ED_vgroup_copy_by_nearest_vertex_in_face_single()
2012-05-13 03:46:46 +00:00
7adeedfecc
ED_vgroup_copy_by_nearest_face_single()
...
Math for interpolation of weights fixed to be consistent with reality...
Still there is probably some indexing errors.
Some vertices that should have blue weight, gets red. (on border faces)
2012-05-12 17:43:56 +00:00
b7f4ea118c
obs! not thinking straight. Reverting bug from cleanup.
2012-05-12 03:50:44 +00:00
66f4f3a9f5
some more cleanup
2012-05-12 03:32:13 +00:00
097ebb0a63
ED_vgroup_copy_by_nearest_face_single()
...
excluded 4th vertex in faces for better result.
2012-05-12 02:13:26 +00:00
8d7de250f3
Tiny bit of cleaning.
2012-05-12 01:04:12 +00:00
c40d445ef7
ED_vgroup_copy_by_nearest_face_single()
...
Is supposed to work, but something funny is going on. (logick error)
Function also needs optimization.
2012-05-12 00:37:45 +00:00
f95f3d9697
Incomplete ED_vgroup_copy_by_nearest_face_single() compiles.
2012-05-11 21:33:24 +00:00
736c0ca6e0
svn merge ^/trunk/blender -r46463:HEAD
2012-05-11 19:26:43 +00:00
f61e50aa4e
it works!
...
Even it compiles some code might still not be implemented.
(I know the gui lacks).
2012-05-09 16:24:46 +00:00
f3230c7897
Second part of fix for [ #31157 ]: Some (actually, 172) operators have no tooltip.
...
About 30 undocumented ops remaining...
2012-05-05 17:10:51 +00:00
5da2135eef
code cleanup: double promotion & some style cleanup
2012-05-03 21:35:04 +00:00
a5af5e8f50
style cleanup: re - http://wiki.blender.org/index.php/Dev:Doc/CodeStyle#Braces_with_Macros
2012-04-30 16:22:40 +00:00
1b47e2678e
style cleanup: missed these from previous cleanup
2012-04-29 17:55:54 +00:00
e2c453b5f9
style cleanup: editors / mesh & object
2012-04-28 15:42:27 +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
b340f930ec
style cleanup: changes to brace placement / newlines - for/while/if/switch
2012-04-28 06:31:57 +00:00
077cbaddf0
- remove unneeded len_v3v3 in bevel code
...
- remove dead assignments from vgroup-blend
2012-04-24 04:44:51 +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
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
2a54ef0442
there was no way to reset timing for absolute shape keys, add an operator to do so.
2012-04-05 06:10:15 +00:00
d37d17019c
fix for vertex group blend - wasn't functional since the deform verts were being tken from a NULL array,
...
also made some other improvements
- make it work in weight paint vert sel mode (some unused code for this was in the function).
- add factor slider.
- add to weight paint toolbar.
2012-04-03 02:16:27 +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
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
4c3bb77012
style cleanup: spaces aroudn operators for operator definitions.
2012-03-22 07:26:09 +00:00
4f19c1a995
spelling cleanup
2012-03-18 07:38:51 +00:00
a2e00c6230
disable object outline draw when painting (its distracting), also fix for own recent mistake in vgroup_blend(). - had bad check for editmesh.
2012-03-09 22:00:40 +00:00
4f7bdc59d3
style cleanup: spelling.
...
also remove large, duplicate comments from sunsky.h
2012-03-09 00:41:09 +00:00
6029640bca
Many vertex group functions assumed mesh object when lattices could be operated on too.
2012-03-08 01:49:25 +00:00
52db32bb53
fix for 2 crashes from missing NULL checks.
2012-03-08 00:23:28 +00:00
f6ae27daef
style cleanup - comment spelling + translate some dutch.
2012-03-04 04:35:12 +00:00
a2c182e923
style cleanup - use aligned * prefixed blocks for descriptive comments (was already used a lot and part of proposed style guide).
2012-03-03 16:31:46 +00:00