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
2012-06-17style cleanup:Campbell Barton
also fix for building ghost test and fix double free in one of the tests
2012-06-12Decrease frequency of mallocs during multires sculpt smoothingNicholas Bishop
Patch from Jason Wilkins. Creates a pool of allocations (one for each OpenMP thread) rather than allocating every time do_multires_smooth_brush() is called.
2012-06-10style cleanupCampbell Barton
2012-06-10Bugfix for autosmooth in sculpt mode.Nicholas Bishop
This option was broken for non-multires meshes (not sure for how long), as the pmap was not getting calculated. Added a more general check for whether the pmap is needed, also added an assert to warn about this in future.
2012-06-10style cleanup: use capital camel case names for typedef'sCampbell Barton
2012-06-07Quite some warnings...Bastien Montagne
2012-06-06style cleanup: (indentation)Campbell Barton
2012-06-04Fix #31559: second 3D viewport does not update when paiting vertex/weightSergey Sharybin
Added notification at the end of weight/vertex paint stroke so all opened viewports would be updated (same was already done for sculpt mode).
2012-06-04Fix #31093: Brush's "Paint curve presets" in Image paint in UV\Image Editor ↵Sergey Sharybin
doesn't work if weight paint mode is active Some operators like curve presets, color sample and some more were using object's mode to distinguish in which mode user is currently painting. Such approach fails in cases when there's paint mode active in 3D viewport and Image Editor. Changed logic here to use some context's state like active space which helps distinguishing current paint mode more accurate. Ported all areas which uses paint_get_active() to new paint_get_active_from_context(). There're still some calls to paint_get_active(), but that shouldn't be harmful due to that places indeed have object's mode as priority when getting paint mode.
2012-06-03quiet warningsCampbell Barton
2012-05-31This fixes a precision issue in multi-paint so that near zero values do not ↵Jason Hays
cause flickering as you paint. It also changes multi-paint's "zero weight color" to black again--it was unintentionally changed to red some time late last year when an aspect of the colors were changed.
2012-05-28add BLI_ghash_pop() which returns the value for a key and removes it at the ↵Campbell Barton
same time, saves a lookup if you need to check if the item exists before removing.
2012-05-27style cleanupCampbell Barton
2012-05-24code cleanup: fix possible use of uninitialized value and remove dead ↵Campbell Barton
initializations.
2012-05-23style cleanupCampbell Barton
2012-05-22style cleanupCampbell Barton
also fix example for mesh uv's
2012-05-22Add input sample averaging to PaintStroke.Nicholas Bishop
Averages input samples to make the brush stroke smoother. Only mouse location is averaged right now, not pressure/tilt/etc. The DNA is in struct Paint.num_input_samples, RNA is Paint.input_samples. In combination with PaintStroke usage this change applies to sculpt, vpaint, and wpaint. The range of useful values varies quite a bit depending on input device; mouse needs higher values to match tablet pen, so set max samples pretty high (64). Release note section: http://wiki.blender.org/index.php/Dev:Ref/Release_Notes/2.64/Sculpting#Input_Stroke_Averaging
2012-05-21code cleanup: spellingCampbell Barton
2012-05-20code cleanup:Campbell Barton
- style - multi-line ifs move braces onto new lines. - iterators - convert some to macros, other split up and move brace.
2012-05-20Fix sculpt layer brush, broken by texture changes in r46651.Nicholas Bishop
2012-05-19code cleanup: use TRUE/FALSE rather then 1/0 for better readability, also ↵Campbell Barton
replace do prefix with do_ for bool vars.
2012-05-18style cleanup: compositor, pointer syntax, function brace placement, line lengthCampbell Barton
2012-05-17style cleanup: line length and ensure some macros error when not ending with ';'Campbell Barton
2012-05-17style cleanup: block commentsCampbell Barton
2012-05-16Code cleanup: simplify standard GHash creation.Nicholas Bishop
Added four new functions as shortcuts to creating GHashes that use the standard ptr/str/int/pair hash and compare functions. GHash *BLI_ghash_ptr_new(const char *info); GHash *BLI_ghash_str_new(const char *info); GHash *BLI_ghash_int_new(const char *info); GHash *BLI_ghash_pair_new(const char *info); Replaced almost all occurrences of BLI_ghash_new() with one of the above functions.
2012-05-15Add 'area' mode for brush texture projection.Nicholas Bishop
This is similar to the 'view' mode, but uses the average local surface normal rather than the view normal for projection. Original code by Jason Wilkins (GSoC). Documentation: http://wiki.blender.org/index.php/Dev:Ref/Release_Notes/2.64/Sculpting#Brush_Map_Mode
2012-05-15Code cleanup: refactor sculpt normal and related functions.Nicholas Bishop
2012-05-15Code cleanups for sculpt-related code.Nicholas Bishop
* Renamed flip_coord as flip_v3_v3 * Added flip_v3 for same input/output * Moved special case for grab brush's normal into calc_area_normal() * Renamed 'fixed' texture mode as 'view plane', mirrors Brush.sculpt_plane terminology
2012-05-13code cleanup: missed some min/max use of float[3], also found case of ↵Campbell Barton
DO_MIN/MAX re-reading same value from array 4 times when it can do once (use minf rather then MIN2, same for maxf)
2012-05-13code cleanup: minor improvements to float/vector usage.Campbell Barton
2012-05-11style cleanup: mainly sculpt/whitespaceCampbell Barton
2012-05-11Add keymap and menu entries for masking.Nicholas Bishop
* Add CTRL+IKEY to invert the mask. * Add ALT+MKEY to clear the mask. * Change the 'Hide' menu in sculpt mode to 'Hide/Mask', adds entires for clearing, filling, and inverting the mask, as well as hiding masked regions.
2012-05-11Add support for hiding masked regions.Nicholas Bishop
Add a new mode, PARTIALVIS_MASKED, to the PAINT_OT_hide_show operator.
2012-05-11Add a paint mask operator to clear, fill, or invert the mask.Nicholas Bishop
2012-05-11Update the keymap for the mask brush.Nicholas Bishop
* Add MKEY as a toggle for the mask brush. We could use ALT similar to SHIFT toggling the smooth brush, but it would conflict with MMB emulation (not to mention many window managers.) * When the mask brush is active, SHIFT toggles it into smooth mode.
2012-05-11Add mask brush for sculpt mode.Nicholas Bishop
The mask brush currently has two modes, 'draw' and 'smooth'.
2012-05-11Use paint mask when calculating sculpt strength.Nicholas Bishop
2012-05-11Add undo/redo support for paint masks.Nicholas Bishop
2012-05-11Ensure mask layers are always present in sculpt mode.Nicholas Bishop
2012-05-11Replace hardcoded DMGridData structure with CCGElem/CCGKey.Nicholas Bishop
* Changes to DerivedMesh interface: DMGridData has been removed, getGridData() now returns an array of CCGElem pointers. Also added getGridKey() to initialize a CCGKey (implemented only by CCGDerivedMesh.) * PBVH: added BLI_pbvh_get_grid_key(). * A lot of code is affected, but mainly is just replacing DMGridData.co, DMGridData.no, and sizeof(DMGridData) with the CCG_*_elem functions, removing the reliance on grid elements of exactly six floats.
2012-05-11Add new options to PAINT_OT_brush_select, toggle and create_missing.Nicholas Bishop
The toggle option, if enabled, will toggle back and forth between two brushes. (The first brush of the desired tool type will be toggled to, running the toggle again switches back to the previously selected brush.) If no brush of the desired type is found, and the create_missing option is enabled, a new brush of that type will be created and set.
2012-05-09code cleanup: color/bw conversion - use BLI color function.Campbell Barton
change modifier to use the average of the RGB since perceptual conversion isn't really needed for modifiers.
2012-05-07Code cleanup: make changes suggested by check_style for sculpt-related files.Nicholas Bishop
2012-05-06Last part of fix for [#31157]: Some (actually, 172) operators have no tooltip.Bastien Montagne
Only remaining undocumented one is IMAGE_OT_record_composite (not sure what it actually does, nor even whether it’s actually working or not...). Note that I didn’t bother with operators flagged as OPTYPE_INTERNAL!
2012-05-06code cleanup: naming - BKE_mesh_*Campbell Barton
2012-05-05Second part of fix for [#31157]: Some (actually, 172) operators have no tooltip.Bastien Montagne
About 30 undocumented ops remaining...
2012-05-05code cleanup: BKE_libblock_find_name() now takes an ID constant rather then ↵Campbell Barton
a string.
2012-05-05code cleanup: naming - pose/armature/image Campbell Barton
also use ..._find_name(..., name) rather then ..._find_named(..., name) --- both were used.
2012-05-05code cleanup: BKE_scene api naming.Campbell Barton
also stop numpy from being found in /usr/include with cmake.
2012-05-05code cleanup: function naming, use BKE_*type* prefix.Campbell Barton