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
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.
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-03-28Cleanup: redundant struct declarationsCampbell Barton
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!
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-04stop adding groups from changing the active group with weight transfer, add ↵Campbell Barton
BKE_defgroup_new function.
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-21code cleanup: use bool where values are true/false, for view3d and related ↵Campbell Barton
functions.
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
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-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-09-05fix [#29431] "Normalize All" from Weight Tools don't work correctlyCampbell Barton
2012-05-13code cleanup: header cleanup and remove some duplicate defines.Campbell Barton
2012-04-30code cleanup: header cleanupCampbell Barton
2012-04-30- improve select grouped prefix/suffix from recent patchCampbell Barton
- added select similar direction (Y axis)
2012-04-29patch [#30834] Quick Hack: Select similar for bones in edit modeCampbell Barton
from Felix Schlitter (dalai) made some changes to select length measurement.
2012-03-29fix [#30715] bmesh: select linked not ignoring hidden verts/edges/facesCampbell Barton
add optional flag to ignore hidden elements. also remove loop mask flag - since it wasnt used and vert/edge/face is enough.
2012-03-20Fix #30531: mirror modifier with vertex groups did not add both the left andBrecht Van Lommel
right groups to merged vertices, only one. This made the result asymmetric, now merged vertices will be part of both groups with half weight.
2012-02-17unify include guard defines, __$FILENAME__Campbell Barton
without the underscores these clogged up the namespace for autocompleation which was annoying.
2012-01-11Longer names support for all ID and other object namesSergey Sharybin
This commit extends limit of ID and objects to 64 (it means 63 meaning characters and 1 for zero-terminator). CustomData layers names are also extended. Changed DNA structures and all places where length constants were hardcoded. All names which are "generating" from ID block should be limited by MAX_ID_NAME-2, all non-id names now has got own define called MAX_NAME which should be used all over for non-id names to make further name migration stuff easier. All name fields in DNA now have comment with constant which corresponds to hardcoded numeric value which should make it easier to further update this limits or even switch to non-hardcoded values in DNA. Special thanks to Campbell who helped figuring out some issues and helped a lot in finding all cases where hardcoded valued were still used in code. Both of forwards and backwards compatibility is stored with blender versions newer than January 5, 2011. Older versions had issue with placing null-terminator to DNA strings on file load which will lead to some unpredictable behavior or even crashes.
2011-12-15vertex group changes,Campbell Barton
use more api functions more (some vertex group editing functions were copied about), also make some functions int oapi calls. - remove defgroup_find_index(), use BLI_findlink instead since they both work the same way. - move static function getNearestPointOnPlane() to BLI_math api function closest_to_plane_v3() - ED_vgroup_give_parray() added option to return an array where unselected verts are NULL (simplifies code & works for lattice when it didn't before). - more consistant error checking of ob->actdef.
2011-12-09went over all uses of MDeformWeight.def_nr and made sure the value is ↵Campbell Barton
clamped when used as an array index.
2011-12-08minor refactor of vertex group functions,Campbell Barton
- defvert_remove_index's index wasnt used anywhere, rename to defvert_remove_group - defvert_add_to_group was local in MOD_weightvg_util.c, moved to deform.c and renamed to defvert_add_index_notest real fix coming next...
2011-11-30use consistent naming for deform.c, also moved defvert_remove_index into ↵Campbell Barton
deform.c, was local in modifier code.
2011-11-30fix [#29450] Mirror Vertex Groups issueCampbell Barton
2011-11-01correct header, for some reason gcc doesnt warn about thisCampbell Barton
2011-11-01vertex group mirrorCampbell Barton
- now works in vertex select + weight paint mode. - added option not to mirror all vertex groups.
2011-10-27fix [#29044] applying mirror modifier causes crash; something with vertex ↵Campbell Barton
groups?
2011-10-23remove $Id: tags after discussion on the mailign list: ↵Campbell Barton
http://markmail.org/message/fp7ozcywxum3ar7n
2011-06-06fix [#27572] Mirror Shapekey and Mirror vertex Group not working for Lattice.Campbell Barton
2011-02-18doxygen: blenkernel under core as module.Nathan Letwory
2011-02-13corrected error from commit r34810.Campbell Barton
2010-12-31fix [#25429] Armature modifier and inverted vertex groupCampbell Barton
- the invert flag was only being used for multi-modifier, but there is no reason not to use this in normal cases as well. - Armature modifier RNA name 'vertex_group' was incorrectly named 'vertex_group_multi_modifier' (own fault), confusion was caused by 'invert_vertex_group_multi_modifier' which was correct.
2010-12-03fix for some pedantic warnings.Campbell Barton
2010-08-22remove inline loops in a few placesCampbell Barton
replace with defgroup_find_name() and BLI_findstring()
2010-02-12correct fsf addressCampbell Barton
2010-02-03vertex group sort operator, access from the vgroup panel, sintels mesh has ↵Campbell Barton
144 vertex groups which got quite tedious to look through.
2010-01-26weight panel editing now supports mirroringCampbell Barton
- use mirror when the option is enabled in editmode. - fliped group names are used when they exist. - only the setting that is edited will be applied to the mirrored verts group. - copy value is applied to all mirrored verts of the selection. - normalize normalizes all vgroups and mirrors. utility functions defvert_sync and defvert_sync_mapped, similar to defvert_copy but does not remove existing groups and optionally creates groups as needed. defvert_sync_mapped uses a an int array for mapping the flipped values.
2010-01-26rename defgroup functions to be more consistant.Campbell Barton
* no functional changes *
2010-01-26panel for adjusting the active vertex groups weightsCampbell Barton
2010-01-17bugfix [#20639] BF25_SVN_25888 and below - OBJ and 3DS import failsCampbell Barton
blender supports type changing for textures in a way that python doesnt. add a new general function. Example usage: tex = bpy.data.textures.new("Foo") tex.type = 'IMAGE' tex = tex.recast_type() Macro to give the number of users accounting for fake user. ID_REAL_USERS(id) Use this so you can remove a datablock if it has a fake users as well as apply transformations to it in the 3D view. Move api function bpy.data.add_texture() --> bpy.data.textures.new()/remove()
2010-01-15- particle drawing was using invalid memory with weights.Campbell Barton
- particle set weight operator (Shift + K) and from the menu. - mirror vertex groups operator can also flip weight group names. a number of utility functions for weight groups added int *get_defgroup_flip_map(struct Object *ob); void flip_vertexgroup_name (char *name_r, const char *name, int strip_number); // moved from modifier.c void copy_defvert (struct MDeformVert *dvert_r, const struct MDeformVert *dvert); void flip_defvert (struct MDeformVert *dvert, int *flip_map);
2009-11-04- Stopping jobs on undo wasnt fixing undo/redo while with render previews as ↵Campbell Barton
it was supposed to: needed WM_jobs_stop_all rather then WM_jobs_stop because it ends the thread rather then just setting 'stop'. - gpl header + warning fix