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
2020-11-30Cleanup: Use "region" for ARegion variable namesHans Goudey
As proposed in T74432 and already implemented in several commits, "region" is the preferred name for `ARegion` variables, rather than any variant of "ar". This commit changes a few "ar" variables that have popped up over time and also adjusted names of variants like "arnew".
2020-11-27Sculpt: Refactor transform code to allow incremental updatesPablo Dobarro
This adds support for incremental updates in the sculpt transform code. Now tools can define if they need the displacement applied for the original coordinates or incrementally. This is needed for features like elastic transform or cloth deformation target in the transform tool. No functional changes. Reviewed By: sergey Differential Revision: https://developer.blender.org/D9547
2020-11-26Fix Edit Face Set operator not being cancelled when the cursor is not over ↵Pablo Dobarro
the mesh If the cursor is not over the mesh, the operator was still using the last Face Set ID updated by the drawing cursor code when the cursor was over the mesh. This now cancels the operator instead of modifying a Face Set that will look random to the user. Reviewed By: sergey Differential Revision: https://developer.blender.org/D9545
2020-11-18Cleanup: clarify precedence of operationsCampbell Barton
2020-11-18Fix use of operator flag as booleanCampbell Barton
Error in cb9de95d61b32f90788875f20e046095bb6310ad
2020-11-12Merge branch 'blender-v2.91-release' into masterPhilipp Oeser
2020-11-12Sculpt: fix face set extract clicking in empty spacePhilipp Oeser
Should not do anything in that case. ref T82615 Maniphest Tasks: T82615 Differential Revision: https://developer.blender.org/D9532
2020-11-12Sculpt: use ESC key in addition to RMB to cancel eyedropperPhilipp Oeser
This is more in line to other eyedropper usages throughout blender. Affected operators: - Sample Dyntopo detail - Extract Face Set (as reported in T82615) ref T82615 Maniphest Tasks: T82615 Differential Revision: https://developer.blender.org/D9531
2020-11-12Fix T82388: Sculpt mode: Unexpected undo behavior.Bastien Montagne
Issue exposed by rB4c7b1766a7f1. Main idea is that non-memfile first undo step should check into previous memfile and tag the ID it is editing as `future_changed`. That way, when we go back and undo to the memfile, said IDs are properly detected as changed and re-read from the memfile. Otherwise, undo system sees them as unchanged, and just re-use the current data instead. Note that currently only Sculpt mode seems affected (probably because it is storing the mode switch itself as a Sculpt undo step instead of a memfile one), but similar action might be needed in some other cases too. Maniphest Tasks: T82388 Differential Revision: https://developer.blender.org/D9510
2020-11-12Merge branch 'blender-v2.91-release'Jeroen Bakker
2020-11-12Merge branch 'blender-v2.91-release'Jeroen Bakker
2020-11-12Fix T82093: Sampled Colors Mismatch When Painting (Partial)Jeroen Bakker
When painting in the image editor on data images (Non-color, Raw) the color mismatched between the sampled color and the actual effect that the painting has on the image. The root cause is that the sampling is color managed, but the painting still uses a fixed color management pipeline with a lot of assumptions. Due to recent changes the drawing of the image editor is color managed, but the painting isn't what made these changes show up. This patch is a work-a-round so that the sampled colors and the effect the paint has on the texture matches. This isn't the correct solution as that would be to migrate all the painting tools to use proper color management. Reviewed By: Pablo Dobarro Differential Revision: https://developer.blender.org/D9411
2020-11-12Fix T81673: Color picker picks up UI and OverlayJeroen Bakker
There are two implementations of the Sample Color operation. One is used by the paint texture and one by the image editor. The image editor variant sampled from the ibuf directly, but the paint texture variant was sampling from the screen front buffer. This can lead into incorrect samples due to color pipeline. This patch will use the image editor variant when sampling a color for 2d texture painting Reviewed By: Pablo Dobarro Differential Revision: https://developer.blender.org/D9408
2020-11-09Merge branch 'blender-v2.91-release'Pablo Dobarro
2020-11-09Fix assert in the sculpt pen tilt codePablo Dobarro
Reviewed By: campbellbarton Differential Revision: https://developer.blender.org/D9422
2020-11-09Cleanup: more renaming in the render/ module for consistencyBrecht Van Lommel
2020-11-09Merge branch 'blender-v2.91-release' into masterJacques Lucke
2020-11-09Sculpt: Fix off-by-one error when creating bitmap for lasso gestureJacques Lucke
Reviewers: pablodp606 Differential Revision: https://developer.blender.org/D9472
2020-11-08Fix T81651, exact boolean modifier incorrect if operand hidden.Howard Trickey
The code was trying to ignore hidden geometry when doing boolean, which is correct when used as a tool, but not when a modifier. Added a "keep_hidden" argument to bmesh_boolean to distinguish the two cases. Also fixed a bug when the tool is used with hidden geometry that is attached to unhidden geometry that is deleted by the operation.
2020-11-08Fix T81651, exact boolean modifier incorrect if operand hidden.Howard Trickey
The code was trying to ignore hidden geometry when doing boolean, which is correct when used as a tool, but not when a modifier. Added a "keep_hidden" argument to bmesh_boolean to distinguish the two cases. Also fixed a bug when the tool is used with hidden geometry that is attached to unhidden geometry that is deleted by the operation.
2020-11-06Cleanup: Render Module: move header files to main directoryAaron Carlisle
Move headers files from `render/extern/` to `render/` Part of T73586
2020-11-06Cleanup: use ELEM macro (>2 args)Campbell Barton
2020-11-06Cleanup: clang-formatCampbell Barton
Missed this last commit.
2020-11-06Cleanup: use ELEM macroCampbell Barton
2020-11-06Cleanup: follow our code style for float literalsCampbell Barton
2020-11-06Merge branch 'blender-v2.91-release'Pablo Dobarro
2020-11-06Fix T81915: Draw Face Sets not working with deformed sculpt meshPablo Dobarro
The draw face sets brush uses the poly center when used in meshes to increase its precision when working in low poly geometry. For this to work with deformed meshes, the deformed coordinates from the PBVH should be used instead. Reviewed By: sergey Maniphest Tasks: T81915 Differential Revision: https://developer.blender.org/D9424
2020-11-06Fix memory leaks in sculpt mode trimming toolsPablo Dobarro
BKE_mesh_free() seems to not free the meshes correctly, so using BKE_id_free() instead. The looptri array was also not freed. Reviewed By: sergey Differential Revision: https://developer.blender.org/D9426
2020-11-06Fix T82400: Dyntopo detail size edit operator visual glitchPablo Dobarro
Just a missing immUnbindProgram Reviewed By: sergey Maniphest Tasks: T82400 Differential Revision: https://developer.blender.org/D9459
2020-11-06Fix Dyntopo detail size preview orientation not matching the cursorPablo Dobarro
Used the sampled cursor normal when available instead of the raycast face normal. This makes the preview match the previous orientation of the cursor. Reviewed By: sergey Differential Revision: https://developer.blender.org/D9460
2020-11-04Merge branch 'blender-v2.91-release'Pablo Dobarro
2020-11-04Fix T81799: Enable use self in trimming tool booleansPablo Dobarro
This enables self intersections in the sculpt trimming tools boolean operations. This should fix wrong booleans results after using the operator to add new disconnected geometry with the join mode. Reviewed By: sergey Maniphest Tasks: T81799 Differential Revision: https://developer.blender.org/D9423
2020-11-04Fix T81842: Cloth brush not creating simulation areas for each tiling ↵Pablo Dobarro
symmetry pass The cloth brush fixed simulation areas are created using the initial_location variable in the StrokeCache. This variable was not being updated by tiling symmetry, so all symmetry passes were using the same simulation area location. Reviewed By: sergey Maniphest Tasks: T81842 Differential Revision: https://developer.blender.org/D9421
2020-11-04Fix T82297: Brush alpha not affecting smear tools strengthPablo Dobarro
The strength of this brush needs to take alpha into account Reviewed By: sergey Maniphest Tasks: T82297 Differential Revision: https://developer.blender.org/D9419
2020-10-31Cleanup: clang-formatLukas Stockner
2020-10-30Sculpt: Dyntopo detail size edit operatorPablo Dobarro
This introduces a new operator to edit the detail size of constant detail mode in dyntopo. The way this operator works and the functionality it provides is similar to the "Voxel size edit" operator for the voxel remesher. It also includes a sample mode. When pressing Ctrl, the detail size will be sampled from the surface under the cursor, updating the preview in real time. This allows quick resolution changes without using the operator multiple times. The operator is set to Shift + D, replacing the old way to change the constant detail size of dyntopo. Shift + R will remain available to be enabled when the voxel remesher works with dyntopo. Deciding if both detail sizes can be unified needs a separate discussion as the new dyntopo can work with detail sizes in parts of the mesh that can easily crash the remesher. The structure of these operators is similar, but the data they control, ranges, drawing and setup functions are completely different, making it hard to merge them into one. Reviewed By: sergey Differential Revision: https://developer.blender.org/D9355
2020-10-30Sculpt: Add normal orientation to lasso trim toolPablo Dobarro
This adds an option to orientate the trimming shape using the surface normal instead of the view when lasso trim is used. Reviewed By: dbystedt, sergey Differential Revision: https://developer.blender.org/D9231
2020-10-29Fix T82188: Sculpt Grab Silhouette and symmetry failsPhilipp Oeser
Wasnt checking the symmetrized 'grab_delta_symmetry' so result could flip around. Maniphest Tasks: T82188 Differential Revision: https://developer.blender.org/D9373
2020-10-27Fix T81854: crash when undoing switch between sculpt and edit mode.Bastien Montagne
The logic of `BKE_sculpt_update_object_for_edit` was not correct. such low-level functions should typically never preform depsgraph evaluation themselves, they should be able to rely on getting a fully evaluated depsgraph and just get needed data from there. Supporting that required fixing other broken code higher in the callstack, namely: * `ED_object_sculptmode_enter_ex` was freeing evaluated data, for no valid reason it would seem. * `sculpt_undosys_step_decode` was ensuring an evaluated depsgraph **before** calling `ED_object_mode_generic_exit`, which would invalidate a lot of evaluated data. Note that it is fairly difficult to track down all code paths leading to `BKE_sculpt_update_object_for_edit`, so there may be still cases where this gets called with improperly evaluated depsgraph. Reviewed By: sergey Maniphest Tasks: T81854 Differential Revision: https://developer.blender.org/D9270
2020-10-27Cleanup: use over-line for doxy commentsCampbell Barton
Follow our code style for doxygen sections.
2020-10-26Cleanup: spellingCampbell Barton
2020-10-26Merge branch 'blender-v2.91-release'Pablo Dobarro
2020-10-26Fix T81904: Cloth brush simulation failing with local area and mirrorPablo Dobarro
When using local area, all nodes need to build their constraints first before activating them for simulation. THis ensures that nodes get their structural constraints from the initial location of each symmetry pass. Reviewed By: sergey Maniphest Tasks: T81904 Differential Revision: https://developer.blender.org/D9303
2020-10-26Sculpt: Implement plane deformation falloff for GrabPablo Dobarro
The plane deformation falloff was introduced in the first version of the cloth brush, but due to the lack of all the new features and fixes in the solver it was causing a lot of artifacts for deformation brushes. In order to avoid that, the cloth brush was always using radial falloff for the grab brush. Now the plane falloff is properly implemented using the deformation constraints. Reviewed By: sergey Differential Revision: https://developer.blender.org/D9320
2020-10-26Sculpt: Option to limit the action of line gestures to the segmentPablo Dobarro
This adds a tool property for sculpt line gesture tools (line and project) to limits its effect to the segment of the gesture instead of using the infinite line to bisect the mesh in two parts. To achieve that, the line gesture now has two extra side planes that can be enabled/disabled for getting the nodes from the PBVH and to test the vertices. Reviewed By: sergey Differential Revision: https://developer.blender.org/D9307
2020-10-26Sculpt: Face Set Edit delete Geometry operationPablo Dobarro
This adds an operation mode to the Face Set Edit tool which deletes the geometry of a Face Set by clicking on it. The operator also checks for the mesh having a single Face Set to avoid deleting the entire object by accident. This is also disabled for Multires to avoid modifying the limit surface without control (it is not an important limitation as base meshes for multires are usually final, but maybe it can be supported in the future). Reviewed By: sergey Differential Revision: https://developer.blender.org/D8938
2020-10-23Merge branch 'blender-v2.91-release'Philipp Oeser
2020-10-23Fix T81934: Painting/Sculpting in ortho fails to let strokes pass through ↵Philipp Oeser
clipped geometry Caused by rB7878adf49cff. When getting the stroke location via raycast in ortho view, the above commit flipped the condition of the check to perform adjustments on the rays start/end. This would thus happen (even though it shouldnt), resulting in wrong depth and stroke location. Now just flip the condition back, so adjustments only happen when clipping is OFF. Maniphest Tasks: T81934 Differential Revision: https://developer.blender.org/D9318
2020-10-22Sculpt: Grab silhouette optionPablo Dobarro
This adds a property to the grab that masks vertices based on its original normal and grab delta. When used on thin meshes, it allows to grab the silhouette from one side of the object without affecting the shape of the other side. Reviewed By: sergey Differential Revision: https://developer.blender.org/D9205
2020-10-22Fix T81932: Dyntopo crashing with sculpt vertex colors brush toolsPablo Dobarro
Paint and smear tools are only implemented for regular mesh PBVH, meaning they are not supported by the dynamic topology and multires sculpting. These tools are to be ignored for an unsupported sculpt modes, regardless of state of user preferences. Reviewed By: sergey Maniphest Tasks: T81932 Differential Revision: https://developer.blender.org/D9308