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-07-03Cleanup: Editors/Sculpt/Paint, Clang-Tidy else-after-return fixesSybren A. Stüvel
This addresses warnings from Clang-Tidy's `readability-else-after-return` rule in the `source/blender/editors/sculpt_paint` module. No functional changes.
2020-07-03Cleanup: Editors/Screen, Clang-Tidy else-after-return fixesSybren A. Stüvel
This addresses warnings from Clang-Tidy's `readability-else-after-return` rule in the `source/blender/editors/screen` module. No functional changes.
2020-07-03Cleanup: Explicit return in each `else if` block in `ed_screen_context()`Sybren A. Stüvel
The `ed_screen_context()` function is approximately 700 lines long, and its main structure is a huge chain of `else if` statements. Some of the bodies did not return, but rather fell through and relied on the `return -1;` at the bottom of the function. This means that in order to truly understand what is going on in one of those `else if` blocks, it could be required to scroll past all the following `else if` blocks, double-checking that they all had an `else`, and then see what happens below. By adding explicit `return -1;` everywhere this happened, this is all avoided, increasing local understandability of the code. Furthermore, it makes the upcoming cleanup with the Clang-Tidy rule `readability-else-after-return` a lot easier to do. No functional changes.
2020-07-03Cleanup: Editors/Object, Clang-Tidy else-after-return fixesSybren A. Stüvel
This addresses warnings from Clang-Tidy's `readability-else-after-return` rule in the `source/blender/editors/object` module. No functional changes.
2020-07-03Cleanup: Editors/Mesh, Clang-Tidy else-after-return fixesSybren A. Stüvel
This addresses warnings from Clang-Tidy's `readability-else-after-return` rule in the `source/blender/editors/mesh` module. No functional changes.
2020-07-03Cleanup: Editors/Armature, Clang-Tidy else-after-return fixesSybren A. Stüvel
This addresses warnings from Clang-Tidy's `readability-else-after-return` rule in the `source/blender/editors/armature` module. No functional changes.
2020-07-03Cleanup: Editors/Animation, Clang-Tidy else-after-return fixesSybren A. Stüvel
This addresses warnings from Clang-Tidy's `readability-else-after-return` rule in the `source/blender/editors/animation` module. No functional changes.
2020-07-03Fix Pose Brush crashing after disabling connected only in FK modePablo Dobarro
This function was returning the ik_chain before disabling the fake_neighbors, so when the brush was used again with fake neighbors disabled after rebuilding the PBVH and free them, they were still enabled in the SculptSession, causing a the crash. Reviewed By: sergey Differential Revision: https://developer.blender.org/D8195
2020-07-03Cleanup: Remove obsolete code in interface_panel.cHans Goudey
Some code delt with panel merging in earlier versions of Blender, which is no longer needed. Other code delt with controls that aren't used anymore, and in some cases have region-level equivalents. There's a surprising amount of this unused code in this file, so removing it will be helpful for the future. Differential Revision: https://developer.blender.org/D7938
2020-07-03Clang-Tidy: Enable readability-redundant-control-flowHans Goudey
2020-07-03Cleanup: Editors/GPencil, Clang-Tidy else-after-return fixesSybren A. Stüvel
This addresses warnings from Clang-Tidy's `readability-else-after-return` rule in the `source/blender/editors/gpencil` module. No functional changes.
2020-07-03Cleanup: Interface, Clang-Tidy else-after-return fixesSybren A. Stüvel
This addresses warnings from Clang-Tidy's `readability-else-after-return` rule in the `source/blender/editors/interface` module. No functional changes.
2020-07-03Fix T78570: Vert/Edge slide doesn't adjust UVsGermano Cavalcante
2020-07-03Cleanup: Fluid renaming from old 'manta' naming to new 'fluid' namingSebastián Barschkis
Changed variable names from mmd, mds, mfs, and mes to fmd, fds, ffs, and fes. The author of this commits lights a candle for all the merge conflicts this will cause.
2020-07-03Cleanup: spellingCampbell Barton
2020-07-02UI: Replace "Grease Pencil" with "Annotation" in user-facing options in the ↵Nicola De Mitri
Clip editor This revision affects the menu under: Clip > Track > Detect Features > Placement. A bit of UI that was probably missed when the legacy GP was renamed to Annotation {F8647693} In this state, it may be confusing for the user. Reviewed By: Blendify Differential Revision: https://developer.blender.org/D8139
2020-07-02Cleanup: Remove useless duplicated linesValentin
I spotted a duplicate struct declaration, so I had to check for other duplicated as well There might be some other but i am not confident enough for deleting them this regex search for duplicate ^(.*;)$\n(\1)$ Reviewed By: JacquesLucke Differential Revision: https://developer.blender.org/D8146
2020-07-02GPencil: Cleanup - More rename from gp_ to gpencil_Antonio Vazquez
2020-07-02Sculpt: Mask By ColorPablo Dobarro
This tool generates masks based on the sculpt vertex colors by clicking on the model, similar to automatic selection tools in image editing software. Reviewed By: sergey Differential Revision: https://developer.blender.org/D8157
2020-07-02Cleanup: Fix build error with clang on windows.Ray Molenkamp
Header and implementation signature for ED_object_add_duplicate were not the same leading to a build error with clang on windows.
2020-07-02Fix T78525: Status bar not reset after Edit Voxel SizePablo Dobarro
Reviewed By: sergey Maniphest Tasks: T78525 Differential Revision: https://developer.blender.org/D8181
2020-07-02GPUOffScreen: Remove the sample parameterClément Foucault
This is because the DRW module is no longer compatible with drawing using MSAA. This also change the Python API.
2020-07-02Cleanup: spellingCampbell Barton
2020-07-02Fix T76806 UV Editor: Display as Outline do not work on macOSClément Foucault
This is a simple workaround using polyline shader. This is temporary and a better solution should be found when we refactor the 2D view using DRW.
2020-07-01Fix alignment test when snap to edge while in vert or edge slideGermano Cavalcante
2020-07-01Revert "Fix alignment test when snap to edge while in constraint"Germano Cavalcante
This reverts commit e16972389e728eeaf5043bb3cbd85fb7312a6463.
2020-07-01Fix alignment test when snap to edge while in constraintGermano Cavalcante
2020-07-01Cleanup: Add functions to check the first brush step and symmetry passesPablo Dobarro
This adds three functions to check the state of the stroke in the StrokeCache, removing the references to first_time and mirror_symmetry_pass from the code. This makes easier to understand what each code path is doing inside of each tool. Some tools were using mirror_symmetry_pass incorrectly, so this should also fix unreported bugs with radial and tiling symmetry related to that. Reviewed By: sergey Differential Revision: https://developer.blender.org/D8164
2020-07-01GPencil: Fix unreported primitive color always set as Vertex ColorAntonio Vazquez
When drawing a primitive, the color was always assigned as vertex color, so it was impossible to change it in the material settings. Now, the color is set to material color or vertex color as expected.
2020-07-01Cleanup: typos in comment.Bastien Montagne
2020-07-01Fix T78330: Duplicating parented objects does not preserve relationships.Bastien Montagne
Caused by refactor of duplicate code in rBad6cccf058d0, we need to take into account the duplication of groups of objects here too...
2020-07-01Fix T78264: Auto Render stops working after rendering manuallySergey Sharybin
Was caused by weird and feedback-loop based issue from a long time ago. The auto-render was only happening for nodes which are tagged for exec. This tag is assigned by edit operations on the tree (for example, when adding or removing links). It is also set in the render pipeline for nodes which are to be executed. The issues comes from the fact that "life updates" during editing did not clear the need_exec flag, ever. This made it so Auto Render was working as expected. However, rendering the scene resets need_exec flags at the end of rendering using ntreeCompositClearTags(). The actual need of such clear is not very clear, but it was making it so Auto Render does not work after render. To my knowledge the flag didn't really meant that the node is connected to the output, so it couldn't have acted as attempt to ignore rendering of an unused scene. It also should be possible to auto-render even if node tree itself was never altered. Long story short: lets ignore need_exec flag in auto-render check and render scene node if the scene is used by the node. Differential Revision: https://developer.blender.org/D8171
2020-07-01LibOverride: Tweak more poll functions to prevent illegal operations.Bastien Montagne
We are likely still missing a lot of things, but most operators that should not be allowed on liboverrides should now be properly disabled.
2020-07-01Fix T78494: Edge slide crashesCampbell Barton
Introduced in recent commit 9c29803255e09.
2020-07-01UI: use term 'Current Frame' instead of 'Playhead'Campbell Barton
Keep terminology consistent, 'Current Frame' is used nearly everywhere.
2020-07-01Transform: generalized custom-data correction supportGermano Cavalcante
Support custom-data correction based on surrounding geometry for all transformation modes of the mesh transform operators. The is the same logic used in Vert and Edge Slide. In order not to change the current default behavior, this property does not affect Vert and Edge Slide modes.
2020-07-01Cleanup: spellingCampbell Barton
2020-07-01Cleanup: undeclared functions (make static)Campbell Barton
2020-06-30Sculpt: Refactor persistent base to make it usable from other toolsPablo Dobarro
This renames the layer persistent base and adds new API functions to get the mesh state from the base, so it can be used from other tools and replaced in the future with a better system. Reviewed By: sergey Maniphest Tasks: T77738 Differential Revision: https://developer.blender.org/D8003
2020-06-30Fix T78201: Paint color not matching the UI and color pickerPablo Dobarro
The color picker and brush->rgb values are in srgb, but sculpt vertex colors works in linear, so they need to be converted. Reviewed By: sergey Maniphest Tasks: T78201 Differential Revision: https://developer.blender.org/D8111
2020-06-30Outliner: Add auto scrolling during drag and dropNathan Craddock
Pan the view when dragging elements near the borders. This uses the same operator that scrolls the region during modifiers drag and drop.
2020-06-30Sculpt: Color filter fill modePablo Dobarro
This implements a fill mode in the Color Filter tool, which fills the entire mesh with a specific color. As this functionality is part of the color filter, this allows to control the blending of the fill color with the filter strength. Reviewed By: sergey Differential Revision: https://developer.blender.org/D8158
2020-06-30Outliner/UI: Show library state icons for data-blocks in "Data API" modeJulian Eisel
Previously it was not possible to tell appart a linked data-block from its override copy. In fact you couldn't tell appart any data-blocks with the same name (which is possible with linking). Now we show the library state icon as we do for data-blocks in other display modes. Old/new comparison (note the overriden "GEO-head"): {F8608835} {F8608836}
2020-06-30Pointcache: store owner_id instead of object in PTCacheIDJacques Lucke
The new simulation type can also reference a point cache, but it is not an object. Reviewers: brecht Differential Revision: https://developer.blender.org/D8097
2020-06-30Fix T76480 UI: Proportional Editing Color too Shallow on 2.9aClément Foucault
This changes the drawing by drawing 2 circles with different intensity to avoid any readability issues. This removes the need for Logic OP which is implementation dependent.
2020-06-30LibOverride: Fix lots of poll functions for Object operators.Bastien Montagne
Prevent operators that should not perform on override data to be callable in those cases.
2020-06-30Sculpt: Pose Brush option to affect loose partsPablo Dobarro
This option allows posing meshes with different disconnected elements using the Pose Brush. This is achieved by doing the following: - Creating an ID per vertex that stores the connected component of that vertex. - By using those IDs, one fake topology connection is created per vertex to the nearest vertex in a different ID. The maximum distance to create that connection is determined by the "Max Element Distance" property. These fake connectivity neighbors are used in the Sculpt API functions iterators, so all the algorithms of the Pose Brush can run without modifications as if everything was part of the same mesh. In order to make this work, the "Connected only" property of the Pose Brush needs to be disabled. This will add an extra performance cost to the Pose Brush and its preview. To achieve optimal results, max element distance should be as low as possible. Reviewed By: sergey, campbellbarton Differential Revision: https://developer.blender.org/D7282
2020-06-30Fix T78358: random crash editing shader nodes with texturesBrecht Van Lommel
2020-06-30Transform: Reduce the alpha in the Edge Slide drawingGermano Cavalcante
It was very intense and could be confused with the `Even` option.
2020-06-30Transform: Add constraint intersection supportGermano Cavalcante
Snap to faces and edges is now enhanced in the Edge Slide. It works in the same way that it already works in the Vert Slide. Basically it now snaps to the intersection of the slid edge with the face plane or the edge line.