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-02-17unify include guard defines, __$FILENAME__Campbell Barton
without the underscores these clogged up the namespace for autocompleation which was annoying.
2012-02-04Code Cleanup: avoid double promotion.Campbell Barton
2012-02-04Fix #30064: Image editor: paint on image, rename image, undo -> crashSergey Sharybin
2012-01-24Misc picky edits to UI messages.Bastien Montagne
2012-01-22fix for own error in recent paint refactor, subtract mode was broken.Campbell Barton
2012-01-20Try fixing modifier keys not working correctly for uv sculpting.Antony Riakiotakis
2012-01-19Remove a couple more unneeded variables from paint cursor drawing.Nicholas Bishop
2012-01-19Remove some unused alpha code in paint_cursor.Nicholas Bishop
2012-01-19Remove stroke parameter from PaintStroke's StrokeGetLocation callback.Nicholas Bishop
Only affected sculpt.
2012-01-19Move paint's WM paint cursor code into a new file.Nicholas Bishop
The paint cursor code is fairly muddled still and needs futher cleanup (commented in the new file.) Over half the paint_stroke code was just called from the cursor draw function. There should be no functional changes from this.
2012-01-17misc small changes and bmesh support for testing scriptCampbell Barton
2012-01-17fix for error in merge 43462Campbell Barton
2012-01-17Uv Tools branch GSOC 2011Antony Riakiotakis
========================= Documentation: http://wiki.blender.org/index.php/User:Psy-Fi/UV_Tools Major features include: *16 bit image support in viewport *Subsurf aware unwrapping *Smart Stitch(snap/rotate islands, preview, middlepoint/endpoint stitching) *Seams from islands tool (marks seams and sharp, depending on settings) *Uv Sculpting(Grab/Pinch/Rotate) All tools are complete apart from stitching that is considered stable but with an extra edge mode under development(will be in soc-2011-onion-uv-tools).
2012-01-16more keymap editsCampbell Barton
- make sure defaults are not assumed (so reuse last settings doesnt override) - replace 0/1 for TRUE/FALSE defines.
2012-01-16use a look for paint brush switching keysCampbell Barton
2012-01-16went over all keymaps to check for cases where defaults were assumedCampbell Barton
(which could be wrong if the previous setting was used).
2012-01-16Minor sculpt/paint cleanups.Nicholas Bishop
Added some comments, constified a param, and moved a couple things around.
2012-01-15modify the weight paint and vcol functions not to modify the color in place ↵Campbell Barton
and instead return a new color. also fix for error in last commit, the brushes alpha wasnt set for weight paint info struct.
2012-01-15vertex/weight paintCampbell Barton
- store brush_alpha() result so it doesnt need to be called for each vertex when paitning. - use _pressure suffix rather then _final to show the pressure has been applied. - weight paint was needlessly calculateing the test weight when multipaint was enabled.
2012-01-15minor cleanup to weightpaint code, move color & weight blending into own ↵Campbell Barton
function (was duplicated), also add enum for vpaint blend modes.
2012-01-15Fix all remaining unified paint settings uses of current Scene.Nicholas Bishop
Things like brush size and strength accessors now take a scene parameter rather than guessing about which Scene's unified paint settings to use. Setting the size/strength through RNA can now be done separately for the brush or the UnifiedPaintSettings. The UI python code required updating to check whether the size/strength controls should use brush or UnifiedPaintSettings RNA. Radial control also required some updates to switch between the two RNA sources.
2012-01-14fix for weight paint when the mirror vertex was allocated (would free the ↵Campbell Barton
original verts weight). was an error in own recent commit.
2012-01-14ensure functions are not used within FTOCHAR macro since they run 2-3 times.Campbell Barton
brushes were doing curve lookups within this macro for example.
2012-01-13'uw' was used in weight paint code for previous deform weight, renamed to ↵Campbell Barton
'dw_prev'
2012-01-13fix [#29832] Weightpainting with "x-mirror" and "auto normalize" fails for ↵Campbell Barton
center bones normalize function simply wasn't called on the mirror vertex. also fix 3 other bugs / inconsistencies * when mirror is enabled, center verts get themselves as the mirror vertex, wpaint code didn't check for this case, mirroring the vertex to it self (would work, but unneeded). * normalizing after painting would scale the active weight too, now keep the painted weight and adjust others when normalizing. * VP_ONLYVGROUP wasn't respected for mirror (mirror vertex group would always be added).
2012-01-13another minor weightpaint change, dont pass do_auto_normalize as a bool arg ↵Campbell Barton
to do_weight_paint_normalize_all(), just check before calling.
2012-01-13minor edits to main weight paint function for better readability - ↵Campbell Barton
do_weight_paint_vertex(), no functional changes.
2012-01-13Fix some RNA/scene issuess with unified paint settings.Nicholas Bishop
Added RNA for the unified paint setting flags that matches the Brush RNA. Fixed the getter/setter functions to avoid guessing which Scene's UnifiedPaintSetting to use. The getter functions take a Scene pointer now, the setter functions are removed in favor of a more explicit approach through RNA: Rather than RNA choosing whether a property's value is in the Brush or in the UnifiedPaintSettings, there are now explicit properties for both. The UI code has been modified accordingly to switch the toggle buttons between affecting the Brush and the UnifiedPaintSettings.
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-30fix [#29686] Weight paint paints when it shouldn'tCampbell Barton
disallow painting when active group is locked
2011-12-30patch from Jason HaysCampbell Barton
--- Locking only redistributes or restricts weights when using bone groups. So, in addition to adding a NULL check to my last bit of code, I made has_locked_group() check for bone groups.
2011-12-30style edits for function declarationsCampbell Barton
2011-12-30weight paint - fix for own error in r42986, also avoid getting unified ↵Campbell Barton
settings for each weight.
2011-12-30improvement to how weight paint blur worksCampbell Barton
* the accumulated blur weight now takes into account how far verts are from the brush, giving more even results * verts where the weight wasnt found were being ignored, now treat them as zero weight verts.
2011-12-30get the brush size at before applying each brush step, saves unified brush ↵Campbell Barton
settings lookups per vertex/face-corner. also use math functions for calc_vp_strength(), and project the vertices as floats rather then ints to get better accuracy, otherwise no functional changes.
2011-12-30minor edits to weight paintCampbell Barton
* store the active vertex group (avoid doing ob->actdef-1 for every vertex) * ensure the active vertex group isn't less then 0.
2011-12-29Fix #29718: anchored stroke with image-texture --- strange behaviourSergey Sharybin
Bug was caused by refactoring in rev41470
2011-12-27Fix own error in r42881, didn't add rectangle padding correctly.Nicholas Bishop
2011-12-27Factor out some generic parts of the sculpting PBVH redraw planes code.Nicholas Bishop
One function converts bounding boxes to screen space, the other converts a screen-space rectangle to 3D clipping planes. Also const-ified some parameters in the ED_view3d API.
2011-12-24formatting edits 120 line lengthCampbell Barton
2011-12-22split >120 length lines (mostly if statements)Campbell Barton
2011-12-22== Sculpt ==Nicholas Bishop
Reformatted all lines longer than 120 characters in sculpt.c. Should be no functional changes. Thanks to Campbell for pointing out the issue. I wouldn't normally do this, but just for reference, here is a screenshot that hopefully makes clear why I think this is worth doing: nicholasbishop.net/random/longlines00.png
2011-12-20minor edits to previous commit & set VKey to toggle vertex select in weight ↵Campbell Barton
paint mode.
2011-12-17Calculation of the center and normal for sculpting would ignore whether the ↵Jason Wilkins
sculpting tool is using the current vertex positions/normals or the positions/normals from before the current edit. Most of the time this will lead to subtle and hard to predict differences from what a user might expect. There was sum testing and discussion about at the end of last summer and even some screen shots showing the difference. I'm going to go ahead and apply this since I do not think it is controversial.
2011-12-17Code cleanup: fix a few warnings (>= 0 and == -1 tests on unsigned types).Brecht Van Lommel
2011-12-16Math lib: matrix multiplication order fix for two functions that wereBrecht Van Lommel
inconsistent with similar functions & math notation: mul_m4_m4m4(R, B, A) => mult_m4_m4m4(R, A, B) mul_m3_m3m4(R, B, A) => mult_m3_m3m4(R, A, B) For branch maintainers, it should be relatively simple to fix things manually, it's also possible run this script after merging to do automatic replacement: http://www.pasteall.org/27459/python
2011-12-15Fix #29615: Crash during undo after toggling "Float buffer" in image paint modeSergey Sharybin
Crash was caused by different types of buffers stored in tile in undo stack and in image itself. Store type of buffer in tile, so byte tile wouldn't be applying on float image anymore.
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-12Fix #29603: Mode switch on linked objectsSergey Sharybin
Do not allow to enter to weight paint mode for proxied objects.
2011-12-10Fix #29516: Twist brush giving crazy resultsSergey Sharybin
- Rotation now happens around initial stroke location rather than around scene origin - Added slider for rotation strength which helps in cases only few rotation is needed to be to increase the precision of such strokes