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
2015-06-10Fix T45013 negative curve falloff not working.Antony Riakiotakis
Was doing clamping as fix for T42984. Seems we can ommit clamping for sculpting if we make sure overlap is not zero with negative values. Control for clamping is moved to the "Use Clipping" function of curves (which is on by default), so both bugs remain squashed and advanced users can now properly utilize curves in sculpting, though not all brushes work well with negative curves.
2015-04-20Cleanup: use ED_view3d_backbuf_* prefixCampbell Barton
2015-04-20Cleanup: use bool /w flag checksCampbell Barton
2015-03-17Part 2 of D1082 by Troy Sobotka, remove our functions that do lumaAntony Riakiotakis
calculations and use the OCIO one instead.
2015-02-27Fix WPaint inactive when painting on a vgroup and the only other vgroup is ↵Bastien Montagne
locked. `enforce_locks()` would reset weights of non-locked modified vgroups if it could not find any other non-modified non-locked vgroup to 'distribute' weights into. Sounds rather stupid, yet I hope I did not break something else, this code is rather convoluted to say the least. Side-reported by zeauro (ronan ducluzeau) in T43814, thanks!
2015-01-12revert part of 7a1dc20Campbell Barton
These warnings are false positives & confuses intended logic to set dummy values.
2015-01-11Cleanup: quite some harmless but noisy warnings from gcc...Bastien Montagne
2014-12-31Fix T42984 detail flood fill not respecting mask values for smooth/sharpAntony Riakiotakis
curves. Issue here is that brush curve could return negative values. This would result in overflow of mask values. Those were not visible during real time preview because result would be clamped. We had two functions in the code, one of which allowed negatives but I don't think that we really want that, users have no control over the negative values at all anyway. Thanks to the reporter, Leon Cheung for figuring out the issue :)
2014-12-29Move average stroke from sculpt session to unified paint settings so itAntony Riakiotakis
can be reused by other paint systems too.
2014-11-29Cleanup: unused headersCampbell Barton
2014-11-28Cleanup GPU: get rid of some extremely legacy draw code.Antony Riakiotakis
Basically this commit gets rid of most of the derived mesh immediate mode drawing (cases such as subsurf excluded). Even when VBO is turned off in user preferences, we still use vertex arrays, which are very similar to VBOs but memory is client side. Vertex arrays are OpenGL 1.1 so compatibility is not an issue here. Reviewers: campbellbarton, sergey, jwilkins Differential Revision: https://developer.blender.org/D919
2014-11-19Refactor: Move part of vgroup handling code from ED_mesh/object_vgroup.c to ↵Bastien Montagne
BKE_object_deform. Along with some minor cleanup and simplifications. Reviewers: campbellbarton Subscribers: sergey Differential Revision: https://developer.blender.org/D903
2014-11-16Cleanup: use BLI_listbase_*** prefix for count,sort,sort_rCampbell Barton
2014-10-13BLI_utildefines: add SQUARE macroCampbell Barton
also minor cleanup
2014-09-08Fix T41746: WPaint: gradient+mirror failsCampbell Barton
2014-09-03Code cleanup, defined shared stroke properties to one central function.Antony Riakiotakis
2014-07-21GSOC 2013 paintAntony Riakiotakis
Yep, at last it's here! There are a few minor issues remaining but development can go on in master after discussion at blender institute. For full list of features see: http://wiki.blender.org/index.php/Dev:Ref/Release_Notes/2.72/Painting Thanks to Sergey and Campbell for the extensive review and to the countless artists that have given their input and reported issues during development.
2014-05-05Stop all dynamic enums using translations (from blend file data)Campbell Barton
2014-04-30Code cleanup: remove unused includesCampbell Barton
Opted to keep includes if they are used indirectly (even if removing is possible).
2014-04-27Code cleanup: const args and arraysCampbell Barton
2014-04-26Code cleanup: use 'const' for arrays (editors)Campbell Barton
2014-04-13Cleanup:Antony Riakiotakis
Naming: Change pressure to size_pressure, it notes correctly that this value is updated and expected to be used for size updating only. Change name of cursor function and since it is used for uv sculpting only now move to the relevant file. Also cleanup unneeded functionality from function. Stroke: Separate updating of stroke variables to invariants (updated when stroke->init = false) and variants.
2014-04-01Code cleanup: remove TRUE/FALSE & WITH_BOOL_COMPAT defineCampbell Barton
2014-03-26revert 0da3e97, fix for T39279Campbell Barton
Following problems: - painting onto a cube asserts immediately (vpaint/wpaint) - crashes with valgrind (bad memory use) - the original intended behavior of vertex projection paint no longer works as I intended. (its constantly refreshing geometry even when no modifiers are applied). Best get code review for these kinds of changes.
2014-03-24Code cleanup: styleCampbell Barton
2014-03-21Fix T39279 Vertex paint modes do not work well with mirror modifierAntony Riakiotakis
Issue here is that coordinates used for projection would not fit the closest candidate. So it was possible to paint against the mirrored part of the mesh, which would get clipped on reprojection. Fix avoids reprojection by storing squared distance, and screen space coordinates, which we will need again later anyway. Also we now always paint against the closest vertex always. This is ensured because squared distances for uninitialized vertices will be MAXFLOAT, thus failing the strength test.
2014-03-12Mesh API: rename 'octree' to 'spatial' since internally its using kdtreeCampbell Barton
2014-03-10Fix T39034 brush always shown even after deactivating the show cursorAntony Riakiotakis
option after reentering a paint mode. Solution by Bastien with modifications, thanks! Show Brush flag need not be reenabled always, but make sure it is at least enabled once on paint initialization.
2014-02-07ListBase API: add utility api funcs for clearing and checking emptyCampbell Barton
2014-02-05Fix for vpaint_stroke_test_start returning operator flags, not boolCampbell Barton
also use bools for paint callbacks
2014-02-03Code cleanup: use bools where possibleCampbell Barton
2014-02-02Code cleanup: suffix vars to make obvious they are squaredCampbell Barton
2014-01-27Code cleanup: use booleans where appropriateCampbell Barton
2014-01-21Code Cleanup: use bool for return values and correct commentsCampbell Barton
also remove CDDM_Check, theres no need for it.
2014-01-21Optimize tessellation code (min 20% better, up to 300% with some CD layers ↵Bastien Montagne
to tessellate). The main idea is to store (during tessellation) or recreate (during tessdata update) a tessfaceverts-to-loops mapping, and then update all tessdata in one pass, instead of calling `BKE_mesh_loops_to_mface_corners` repeatedly for all tfaces! Differential Revision: https://developer.blender.org/D226 Reviewed by Campbell, thanks a lot!
2014-01-04RNA API: use bool's for enum itemf callbacks.Campbell Barton
2013-12-18Vertex/weight paint: remove "Use All Faces" option.Brecht Van Lommel
This is now always enabled, when you want to paint on a individual faces you can use face selection masking instead. Fixes T37855.
2013-12-12Mesh API: Add BKE_mesh_origindex_map_createCampbell Barton
This API function lets original data loop over its derived data, Use for vertex paint, replacing custom function.
2013-12-10Refactoring/cleanup, borrowed from soc-2013-paint branch.Antony Riakiotakis
* Move symmetry options to the paint struct (where all paint systems can make use of it) * Rename draw_pressure to stroke_active. This is what is really checked on those occasions that this is used. Also move turning on/off of this option to the stroke level and avoid doing it on every stroke system. * Rename BRUSH_RESTORE_MESH to BRUSH_DRAG_DOT. In image painting this won't restore any mesh, so better have a name that is directly linked to what the flag actually does.
2013-12-03Code Cleanup: remove redundant/misleading NULL checksCampbell Barton
2013-11-25Code Cleanup: rename vars for detecting change to be more consistentCampbell Barton
rename change/is_change/is_changed/modified -> changed also use bools over int/short/char and once accidental float.
2013-11-16code cleanup: rename flip_side_name to BKE_deform_flip_side_nameCampbell Barton
2013-11-05code cleanup: typosCampbell Barton
2013-10-31remove return argument from wmOperatorType->cancel, was only ever returning ↵Campbell Barton
OPERATOR_CANCELLED.
2013-10-10add MEM_SIZE_OPTIMAL to avoid memory fragmentation & waste lost to slop-space.Campbell Barton
2013-10-09Paint cursor overlays: Delete the cursor texture overlay resources whenAntony Riakiotakis
exiting a paint mode.
2013-09-30lots of operator descriptions were incorrectly copy/pasted.Campbell Barton
update some descriptions, others were removed and operators tagged as internal. add a script to detect duplicate operator descriptions.
2013-09-04replace sqrt(dot()) with length functions.Campbell Barton
2013-08-29follow up on r59628, setting modes now ensures that other modes exit first,Campbell Barton
this was only done in some cases before and it was possible to enable weightpaint+sculpt at the same time when enabling sculpt by directly running the mode switching operator. add generic function to ensure a compatible mode before entering the new mode (added to each operators exec function)
2013-08-29fix [#34462] Crash when switching modes via mix of TAB and spacebar menuCampbell Barton