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-10-06Sculpt: use tube falloff when calculating normalsCampbell Barton
Also apply 2D clamping for other tools when the option is set.
2017-10-06Sculpt: clamp normal to plane w/ projected falloffCampbell Barton
Allows for editing outlines w/o pushing geometry towards/away from the view.
2017-10-06Cleanup: styleCampbell Barton
2017-10-05Sculpt Mode: 2D falloff optionCampbell Barton
This makes brush influence into a tube instead of a sphere. It can be used along the outline of a mesh to adjust it's silhouette. Note that all this takes advantage of changes from vertex paint, from testing this seems useful so exposing from the brush options.
2017-10-05Vertex Paint: apply when cursor isn't over facesCampbell Barton
This behavior makes more sense for sculpt, less so for painting. Restores non PBVH behavior, adding `BKE_pbvh_find_nearest_to_ray` - similar to ray-cast except it finds the closest point on the surface.
2017-10-05Cleanup: rename dist -> depthCampbell Barton
Prepare to add code that stores distance to the ray, avoid confusion.
2017-10-05Cleanup: remove unused struct memberCampbell Barton
Merged with soc-2016-pbvh-painting, no longer needed.
2017-10-04Merge branch 'master' into blender2.8Sergey Sharybin
2017-10-03Vertex Paint: smear got wrong last-locationCampbell Barton
2017-10-03Merge branch 'master' into blender2.8Sergey Sharybin
Notes: - Changes in paint_vertex.c were simple to merge, mainly related on passing evaluation context. - Conflicts in EditDM and drawmesh.c are solved using code from blender2.8 branch. Those areas are deprecated and not to be used in final release. However, it's possible that some reference code from master is lost, so keep attention when adding alpha support for vertex painting.
2017-10-03Weight Paint: don't set weight w/ average brushCampbell Barton
Also use 'const' for brush.
2017-10-02Vertex Paint: projection optionsCampbell Barton
This makes vertex paint match image painting more closely. - Add falloff shape option sphere/circle where sphere uses a 3D radius around the cursor and circle uses a 2D radius (projected), like previous releases. - Add normal angle option so you can control the falloff. - Add Cull option, to paint onto faces pointing away. Disabling normals, culling and using circle falloff allows you to paint through the mesh.
2017-10-02Sculpt: calculate plane instead of point,normalCampbell Barton
No functional changes.
2017-10-02Cleanup: add 'sphere' to sculpt test function nameCampbell Barton
2017-09-30Merge branch 'master' into blender2.8Campbell Barton
2017-09-29Cleanup: de-duplicate copied code w/ vertex paintCampbell Barton
2017-09-27Merge branch 'master' into blender2.8Campbell Barton
2017-09-27Vertex/Weight Paint: Use PBVH for paintingCampbell Barton
2016 GSOC project by @nathanvollmer, see D2150 - Mirrored painting and radial symmetry, like in sculpt mode. - Volume based splash prevention, which avoids painting vertices far away from the 3D brush location. - Normal based splash prevention, which avoids painting vertices with normals opposite the normal at the 3D brush location. - Blur mode now uses a nearest neighbor average. - Average mode, which averages the color/weight of the vertices within the brush - Smudge mode, which pulls the colors/weights along the direction of the brush - RGB^2 color blending, which gives a more accurate blend between two colors - multithreading support. (PBVH leaves are painted in parallel.) - Foreground/background color picker in vertex paint
2017-09-15Merge branch 'master' into blender2.8Sergey Sharybin
2017-09-14Fix T52537: Dyntopo "detail flood fill" doesn't work in some casesSergey Sharybin
Mainly when object origin is not at the geometry bounding box center. Seems to be straightforward to fix, hopefully it doesn't break some obscure case where this was a desired behavior.
2017-08-16Update code comments from DAG_id_tag_update to DEG_id_tag_updateDalai Felinto
2017-07-28Merge branch 'master' into blender2.8Campbell Barton
2017-07-28Fix T52195: Sculpt from Python failsCampbell Barton
When calling sculpt from Python, setting 3D 'location' but not 2D 'mouse' stopped working in 2.78. Now check if the operator is running non-interactively and skip the mouse-over check.
2017-07-21Pass EvaluationContext argument everywhereLuca Rood
Note that some little parts of code have been dissabled because eval_ctx was not available there. This should be resolved once DerivedMesh is replaced.
2017-07-12DwM: Option to use final material over mode shadingCampbell Barton
Support using full material shading in sculpt & paint modes mode. Access 'Full Shading' from the display panel when in paint modes.
2017-06-08Replace all old DAG calls with direct calls to new DEG and remove ↵Luca Rood
BKE_depsgraph.h This removes BKE_depsgraph.h and depsgraph.c
2017-02-27Merge branch 'master' into blender2.8Luca Rood
2017-02-27Fix/workaround T50677: Shrinkwrap constraint don't get updated when target ↵Sergey Sharybin
mesh gets modified Do a "full" update on leaving sculpt mode, so we are sure scene will be brought to a consistent state. Ideally we'll only do that when there are objects which depends on geometry without re-calculating self geometry, but that's a bit tricky currently.
2017-02-26OpenGL: replace gluProject and gluUnProject, and simplify surrounding code.Brecht Van Lommel
Part of T49042.
2017-02-15Fix sculpt brush draw crash on Blender2.8Dalai Felinto
Temporary solution by Sergey Sharybin, it needs further investigation. This should not be necessary, specially since this works fine in master.
2017-01-12Fix T50056: Dyntopo brush size shortcut broken using constant detail setting.Julian Eisel
2016-12-08Fix T49872: 3D cursor places with camera shift in ortographic modeJulian Eisel
2016-11-25Math Lib: rotate matrix cleanupCampbell Barton
- Remove 'rotate_m2', unlike 'rotate_m4' it created a new matrix duplicating 'angle_to_mat2' - now used instead. (better avoid matching functions having different behavior). - Add 'axis_angle_to_mat4_single', convenience wrapper for 'axis_angle_to_mat3_single'. - Replace 'unit_m4(), rotate_m4()' with a single call to 'axis_angle_to_mat4_single'.
2016-11-12Sculpt UI: Make DynTopo constant detail a resolution valueJulian Eisel
This should make it easier to sculpt in high resolutions, downside is that the new way to calculate maximum edge length is a bit less intuitive. Maximum edge length used to be calculated as blender_unit * percentage_value, now it's blender_unit / value. Reused old DNA struct member, but had to bump subversion to ensure correct compatibility conversion. Also changed default value slightly (would have had to set to 3.333... otherwise). Was Requested by @monio (see https://rightclickselect.com/p/sculpting/zpbbbc/dyntopo-better-scale-input-in-constant-detail-mode) and I think it's worth testing.
2016-07-28Fix T48838: Tiling sculpt problem with custom brushSergey Sharybin
2016-07-14Cleanup: styleCampbell Barton
2016-07-07Fix memory leak switching sculpt mode + dyntopoCampbell Barton
Auto-enabling dyntopo w/ mode switching leaked memory when undo was used.
2016-07-02BMesh: utility function to resize bmesh elementsCampbell Barton
This can be used to re-allocate bmesh data with/without tool flags. Needed for Symmetrize since it uses bmesh operators from dyntopo.
2016-07-01Add wait cursor toggling dyntopoCampbell Barton
2016-07-01Sculpt: skip normal calculation entering dyntopoCampbell Barton
When no triangulation runs we can skip re-calculating normals.
2016-07-01Enable dyntopo re-entering sculpt modeCampbell Barton
2016-07-01BMesh: make toolflags optionalCampbell Barton
Saves 8 bytes per vert/edge/face. Gives overall ~20-25% memory saving for dyntopo sculpting and modifiers that use BMesh.
2016-05-08Cleanup: warningsCampbell Barton
2016-04-29Fix T48290: Hook fails after deleting geometryCampbell Barton
Now CD_SHAPEKEY_INDEX customdata is stored in edit-mode when hooks and vertex parents are used. This also fixes a bug where undo would loose key-index data. Move to structs for BM_mesh_bm_to/from_me to avoid passing many argument, which mostly aren't used.
2016-02-22Sculpt: use Ctrl to set grab/sculpt normal-weightCampbell Barton
Having to change this with the slider each time isn't so convenient and invert in this case does nothing.
2016-02-22Sculpt: apply grab normal-weight to snake-hookCampbell Barton
2016-02-22Sculpt brush can now grab inwards w/ normal weightCampbell Barton
Previously the grab brush could only move ourwards when normal aligned.
2016-02-02Fix T46583: Sculpt symmetry don't work in clipping border view modeSergey Sharybin
This is an attempt to solve the issue by doing clip test on the original side of the stroke. Some extra testing is required.
2016-01-28Cleanup: warnings & styleCampbell Barton
2016-01-25Fix T46456: Crash when aborting stroke while using dyntopo.Bastien Montagne
Basically, the 'fake undo' restoring orig coordinates in this case cannot work with dyntopo, since it assumes nothing was added/removed. For now, just prevent this 'restoration' when dyntopo is used, this is no ideal solution from user PoV - but it's better than plain ugly crash! Complete solution seems much more involved and outside of scope of bug handling, added a TODO note: http://wiki.blender.org/index.php/Dev:Source/Development/Todo/Tools#Sculpting