Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2018-01-10Cleanup: comment block alignmentCampbell Barton
2017-07-26Fix T52176: Bevel doesn't correctly work with default empty Vgroup.Bastien Montagne
`defvert_array_find_weight_safe()` was confusing 'invalid vgroup' and 'valid but totally empty vgroup' cases. Note that this also affected at least ShrinkWrap and SimpleDeform modifiers.
2017-06-14Make whole ID copying code use const source pointer.Bastien Montagne
Noisy change, but safe, and better do it sooner than later if we are to rework copying code. Also, previous commit shows this *is* useful to catch some mistakes.
2017-01-16Cleanup/refactor: move BKE_deform_flip_side_name & co to BLI_string_utilsBastien Montagne
Functions like that do not have anything to do in BKE really, even less when actually more used for bones than vgroups!
2017-01-16Cleanup/refactor: get rid of fixed name limit in BKE_deform_flip_side_name & co.Bastien Montagne
Those were forcing to use vgroup name define in bones area, or even mixing with maxbonename... ugly, and totally avoidable.
2017-01-16Cleanup/refactor: Add new BLI_string_util.Bastien Montagne
Things like `BLI_uniquename` had nothing, but really nothing to do in BLI_path_util files! Also, got rid of length limitation in `BLI_uniquename_cb`, we can use alloca here to avoid overhead of malloc while keeping free size (within reasonable limits of course).
2016-02-08Fix group flipping when syncing mirror weightsAlexander Gavrilov
Corrects mirror syncing for invert, levels & smooth. Note that the code changed to process mirroring even if both verts are selected, since group flipping can mean that is still meaningful.
2016-02-08Cleanup: use doxy comments for deform.cCampbell Barton
2016-01-20Weight Paint: 'Sample' now supports multi-paintAlexander Gavrilov
Since the coloring uses sum or average of the weights of all selected groups, the weight pick tool should also use that instead of reading the weight of the single active group that you can't see.
2015-11-03Fix T46611: Vertex group locking failsCampbell Barton
2015-10-16Fix T46508: data_transfer of normals fails in case objects are transformed.Bastien Montagne
The final stage of the process (copying/interpolating new dst cddata from src cddata) was simply broken in normal case, where we need to convert from source to destination object space. This patch is a bit verbose, but I cannot see how to avoid it really. To think this code is in master since over 6 months and it only gets reported now... :/
2015-08-18Refactor translation code out of blenfontCampbell Barton
- Add blentranslation `BLT_*` module. - moved & split `BLF_translation.h` into (`BLT_translation.h`, `BLT_lang.h`). - moved `BLF_*_unifont` functions from `blf_translation.c` to new source file `blf_font_i18n.c`.
2015-08-06Simplify defvert_remove_group(), use reallocCampbell Barton
Patch by @chadf
2015-07-14BKE_deform: assert on invalid argsCampbell Barton
Will phase these out eventually
2015-05-05Math Lib: rename fill_*, to copy_*Campbell Barton
matching convention for fixed length api, eg: copy_v3_fl
2015-04-05Fix T44263: Invalid parameters to fill_vn_fl in deform.c.Bastien Montagne
Own fault, thanks a bunch to LazyDodo for finding that - and odd GCC did not warn about it...
2015-03-19Fix out-of-bounds read BKE_deform_flip_side_nameCampbell Barton
2015-02-23CustomData: const correctness for interp()Campbell Barton
2015-01-26Cleanup: strcmp/strncmp -> STREQ/STREQLEN (in boolean usage).Bastien Montagne
Makes usage of those funcs much more clear, we even had mixed '!strcmp(foo, bar)' and 'strcmp(foo, bar) == 0' in several places...
2015-01-12Cleanup: rename BKE's 'object_data_transfer' to 'data_transfer' to avoid ↵Bastien Montagne
same file names with ED_object's one.
2015-01-09Transfer Data: add main core code and operators.Bastien Montagne
This add code needed to map a CD data layout from source mesh towards destination one, and code needed to actually transfer data, using BKE's mesh remap generated data. This allows to transfer most CD layers (vgroups, vcols, uvs...) as well as fake, boolean ones (like smooth/sharp edges/faces, etc.). Some types are not yet transferable, mainly shape keys, this is known TODO. Data transfer can also use some advanced mixing in some cases (mostly, vgroups and vcols). Notes: * New transfer operators transfer data from active object towards selected ones. * Modifier will be committed separately. * Old weight transfer code (for vgroups) is kept for now, mostly because it is the only usable one in weightpaint mode (it transfers from selected object to active one, this is not sensible in Object mode, but needed in WeightPaint one). This will be addressed soon. Again, heavily reviewed and enhanced by Campbell, thanks!
2014-11-16Cleanup: use BLI_listbase_*** prefix for count,sort,sort_rCampbell Barton
2014-08-19Fix for BKE_deform_flip_side_name getting fooled by extra separator charactersCampbell Barton
D740 by ldo with own edits
2014-07-19Defines: replace ELEM3-16 with ELEM(...), that can take varargsCampbell Barton
2014-04-01Code cleanup: remove TRUE/FALSE & WITH_BOOL_COMPAT defineCampbell Barton
2014-02-07ListBase API: add utility api funcs for clearing and checking emptyCampbell Barton
2014-02-03Code cleanup: use bools where possibleCampbell Barton
2013-11-17Style Cleanup: whitespaceCampbell Barton
2013-11-16code cleanup: rename flip_side_name to BKE_deform_flip_side_nameCampbell Barton
2013-10-10Weight Paint Tools: Add "Subset" option to "Normalize All"Irie Shinsuke
This option is needed when vertex groups are used for both armature deformation and the other purpose such as influence of mesh modifier. Thanks to Campbell for code review!
2013-07-27fix for BKE_deform_split_suffix()Campbell Barton
- out of bounds read when passing in empty string. - single character prefix didnt work. - with no suffix, the string body was truncated.
2013-07-19code cleanup: use MEM_mallocN rather then MEM_callocN when the array isCampbell Barton
overwritten immediately after.
2013-07-04stop adding groups from changing the active group with weight transfer, add ↵Campbell Barton
BKE_defgroup_new function.
2013-06-25style cleanupCampbell Barton
2013-06-23Added polished Vertex Weights Panel (properties sidebar)Gaia Clary
2013-05-15use bool arrays rather then char for weight paint lock/select arraysCampbell Barton
2013-03-25More new data names translation (most cases should be covered now).Bastien Montagne
Also done a few cleanup here and there...
2013-03-21code cleanup: use bool where values are true/false, for view3d and related ↵Campbell Barton
functions.
2013-03-04patch [#34103] use boolean in path functions and add comments.Campbell Barton
path_util_1.patch from Lawrence D'Oliveiro (ldo)
2013-02-22new weight paint draw option to display unweighted vertices with the option ↵Campbell Barton
to check on the active group or all groups. notes: - vertices with zero weights are considered the same as vertices outside of a group. - currently these show black but this can be made a theme color. - multi-paint overrides this option (noted in description)
2013-02-11fix for own bug - memory leak when cancelling weight gradient toolCampbell Barton
2013-01-03r53351 removed a NULL check for name in defgroup_name_index(). name can be ↵Mitchell Stokes
NULL when deforming verts in the BGE, so I'm adding a NULL check back in.
2012-12-28code cleanup:Campbell Barton
- free_dverts -> BKE_defvert_array_free - copy_dverts -> BKE_defvert_array_copy also move the functions from BKE_mesh into BKE_deform
2012-12-28remove unneeded inline lookups and fix error with wpaint_stroke_test_start ↵Campbell Barton
returning OPERATOR_PASS_THROUGH rather then a boolean.
2012-10-30minor changes to select similar,Campbell Barton
- replace ngon_fake_area() with generic call to BM_face_calc_area(). - add defvert_find_shared() utility function.
2012-10-23rename api functions...Campbell Barton
- minf, maxf, mini, maxi --> min_ff, max_ff, min_ii, max_ii
2012-10-22code cleanup: check defgroup_name_index() return value != -1, rather then ↵Campbell Barton
checking >= 0. also remove unused bmesh decimator code.
2012-09-05fix [#29431] "Normalize All" from Weight Tools don't work correctlyCampbell Barton
2012-09-05code cleanup: move get_selected_defgroups into object_deform.c and make it ↵Campbell Barton
behave like similar functions, also when drawing vertex weight colors, only call this function when multi-paint is enabled.
2012-05-24style cleanup: comma placementCampbell Barton