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
path: root/source
AgeCommit message (Collapse)Author
2020-03-26Merge branch 'master' into wm-drag-drop-rewriteJulian Eisel
2020-03-26Fix T60682: adds macOS alias redirection for directoriesBrecht Van Lommel
This adds support for macOS aliases in addition to symlinks. It also adds support for hidden, readonly and system file attributes. Contributed by Ankit (ankitm) with modifications by me. Differential Revision: https://developer.blender.org/D6679
2020-03-26Add option to Copy the active view layer, and add an empty view layerChris Clyne
Modify the view layer add operator (and underlying `BKE_view_layer_add`) to allow for copying the current view layer, as well as adding a new one but with all LayerCollections disabled by default (this is important for heavy scenes where currently adding view layers can take a long time due to enabling every collection by default). Reviewed By: mont29 Differential Revision: https://developer.blender.org/D6862
2020-03-26Overlay: Fix crash caused by NULL passesClément Foucault
2020-03-26Sculpt: Create Face Set by Edit Mode SelectionPablo Dobarro
This implements a new mode in the Face Sets Create operator to create a new face sets from the faces selection in edit mode. This can be used when the user considers that the edit mode tools are more convenient for a more precise control or a certain type of selection, like creating a face set from a face loop. Reviewed By: jbakker Differential Revision: https://developer.blender.org/D7211
2020-03-26Sculpt: Face Sets Init operatorPablo Dobarro
This operator initializes all face sets in the sculpt at once using different mesh properties. It can create face sets by mesh connectivity, material slots, face normals, UV seams, creases, sharp edges, bevel weights and face maps. For properties that are already in the faces, this is implemented as a loop. Properties that depend on edge attributes use a similar operation to sculpt flood fill, but using face adjacency instead of edge vertex connectivity. As Multires also stores the face sets in the base mesh, this should work in the face sets Multires implementation without any changes. This is implemented as a separate operator as this resets the visibility and creates all face sets at once, while the create face set operator creates a single face sets, leaving the rest of the face sets in the mesh as they are. Reviewed By: jbakker Differential Revision: https://developer.blender.org/D7209
2020-03-26Sculpt: Surface Smooth Brush and Mesh FilterPablo Dobarro
This implements the Surface Smooth Brush as a mode inside the Smooth tool, which uses the HC algorithm from "Improved Laplacian Smoothing of Noisy Surface Meshes". Comparted to the regular smooth brush with laplacian smooth, this brush removes the surface while preserving the volume of the object. The smooth result can be controlled by tweaing the original shape preservation, displacement and iteration count. The same surface smooth operation is also available as a mesh filter. Reviewed By: jbakker Differential Revision: https://developer.blender.org/D7057
2020-03-26Fix T75087 Workbench: DoF: Divide By Zero when antialiasing is disabledClément Foucault
2020-03-26Sculpt: Use uchar to store the sculpt mask in the GPUPablo Dobarro
Using a float to store and render the mask seems like a waste of memory without any noticeable difference in the viewport for its use case. After this commit, the mask and the face sets combined should take the same amount of GPU memory than only the mask in previous versions. Reviewed By: jbakker Differential Revision: https://developer.blender.org/D7148
2020-03-26Overlay: Wireframe: New method to avoid zfighting with geometryClément Foucault
This new method is only enabled if Overlay Smooth Wire is enabled. This method gives really nice results but has some downside: - Require a depth copy or loose the ability to write wire depth to the depth buffer and have correct depth ordering of wires. This patch use the former, with its associated cost. - Require some depth sampling and prevent early depth test (i.e: has some performance impact). - Has some relatively minor instability with geometry that are perpendicular to the view and intersecting with other geometry. Pros: - Compared to a fullpass approach this is surely going to have less performance impact and much higher quality. - Removes the additional vertex offset. (see T74961) - Fixes all half edges z-fighting. {F8428014} {F8428015} Reviewed By: brecht Differential Revision: https://developer.blender.org/D7233
2020-03-26Fix T74780: Face sets operators not aware of SCULPT_FACE_SET_NONEPablo Dobarro
SCULPT_FACE_SET_NONE default value is 0 and it is rendered hidden, so the invert sign operation to show it was not working. Now the show all function sets this face set to ID 1 before setting its sign. I also refactored this check in gpu_buffers. Not related to the reported issue, but the mesh in attached contains non manifold geometry with hidden loose vertices, so the visibility state was not syncing correctly to those vertices. Now the toggle operators checks the current visibility only on the face sets, so no manifold vertices are ignored (as they are in the rest of operations in sculpt mode). Reviewed By: jbakker Maniphest Tasks: T74780 Differential Revision: https://developer.blender.org/D7188
2020-03-26Fix T74761: Reimplement vertex to face sets visibility syncPablo Dobarro
This fixes multiple issues: - Adds tag to update shading when changing vertex visibiliyt. This makes the mesh visibility update when the operator ends. - Sync vertex to face sets no longer requires the pmap, so it does not crash. (Maybe we can initialize the pmap on undo to avoid these problems in the future). - Sync vertex to face sets now works in a coherent way with the rest of visibility operations. Hide Box and Hide mask now sync the visibility changes to the face sets, so the all the operations are now getting a correct visibility state. Reviewed By: brecht Maniphest Tasks: T74761 Differential Revision: https://developer.blender.org/D7187
2020-03-26Fix T74899: Add Draw Face Sets brush to versioning defaultsPablo Dobarro
Brushes are created automatically when the tools is enabled, but this way it gets correct defaults and it is accesible from scripts. Reviewed By: jbakker Maniphest Tasks: T74899 Differential Revision: https://developer.blender.org/D7199
2020-03-26Fix T74692: Do not draw nodes with the default face setPablo Dobarro
The default face set color is white, so we can skip drawing the default face set. This allows to enable again the optimization of not drawing overlays in nodes where the mask is empty. This will still slow down the viewport when a new face set is created for the whole mesh or when inverting the mask, like in previous versions. I also renamed the function to make more clear that now it is checking for both mask and face sets. Reviewed By: brecht Maniphest Tasks: T74692 Differential Revision: https://developer.blender.org/D7207
2020-03-26Fix T74808: Division by 0 in Cloth brush solver with overlapping verticesPablo Dobarro
This checks that the distance of the current positions of two connected vertices is not 0 before calculating the correction vectors for those vertices. Reviewed By: jbakker Maniphest Tasks: T74808 Differential Revision: https://developer.blender.org/D7184
2020-03-26Fix T75089: Missing pmap when using Face Sets in the mesh filterPablo Dobarro
When using Face Sets to mask the mesh filter the pmap needs to be initialized to check the face sets of each vertex, otherwise it will crash because it is null. Probably now we should just initalize the pmap when building the PBVH as almost all tools need it, so we can avoid these crashes in the future. Reviewed By: jbakker Maniphest Tasks: T75089 Differential Revision: https://developer.blender.org/D7236
2020-03-26Fix T67888: Incorrect Wireframe After Applying SubSurf/MultiResJeroen Bakker
Show control edges stores the control edges in the mesh which is picked up by the draw manager. When applyng a subsurf (or multires) we don't want that data present in the base mesh. Any rebuilding of the mesh would overwrite the data anyway. This patch introduces a new flag for applying modifiers that can be checked to ignore storing display specific data in the base mesh. Reviewed By: Brecht van Lommel Differential Revision: https://developer.blender.org/D7163
2020-03-26SubDiv: Incorrect normals loose edgesJeroen Bakker
The normals of loose edges can be non uniform as they aren't normalized. Checked with what happens with edit loose edges and synchronized the implementation. Reviewed By: Brecht van Lommel Differential Revision: https://developer.blender.org/D7127
2020-03-26Fix Crash In Paint OverlayJeroen Bakker
The previous implementation tested the normal behavior and ignored some edge cases. This patch will also test for NULL in all cases
2020-03-26Fix T70807: Weight Paint Overlay XRayJeroen Bakker
Weight paint overlay was not working when XRay was turned on. The Weight Paint overlay is rendered directly into the default framebuffer with a depth equal test. This test fails as the depth won't match. This patch will update the depth buffer in these cases. Reviewed By: fclem Differential Revision: https://developer.blender.org/D7176
2020-03-26GPencil: Fix unreported fade object when no Gpencil object is selectedAntonio Vazquez
Only must fade if the active object is a GPencil.
2020-03-26Fix T75047: Number input advanced mode is not working in JP keyboardSebastian Parborg
Check for special ascii values for number input first so that we can quickly decide if we should go into advanced mode. Reviewed By: Bastien
2020-03-26Fix T75094: Gpencil Selection mode crash in Vertex Paint when build modifier ↵Antonio Vazquez
is used
2020-03-26CMake: Fix Blender.app creation/modification timeSergey Sharybin
It was failing on first run of CMake since the Blender.app is not yet created.
2020-03-26Fix T75093: GPencil eraser selection in draw mode erase previous selected pointsAntonio Vazquez
The selection in Draw mode works as a quick eraser and must erase only the points selected in that operation and not any previous selected point. Now, before erase, unselect any previous selected point. Note: It's planned to split select & erase operators for Draw mode.
2020-03-26Keymap: disallow modal key-maps in add-ons keyconfigCampbell Barton
Disable functionality reported in T60766 & only partially worked. This could be used if the key-map was added after Blender started as a way to customize modal key-maps, however it didn't work with the add-on enabled on startup. Add-on key-maps are intended to extend existing key-maps so they can call the add-on, not as a way to change modal key-maps for Blender's built-in functionality. Disable this since it's not needed as add-ons can't yet define modal key-maps.
2020-03-26Subsurf: Enable Optimal Display by defaultSergey Sharybin
Affects both Subdivision Surface and Multires modifiers.
2020-03-26Fix T75062: Frame Flashes During 3D Viewport Animation PlaybackJeroen Bakker
This issue became visible after fixing other TAA issues recently. The sample count of the first frame wasn't reset resulting that the incorrect resolve took place. This issue was already there beforehand, it is just much clearer during the recent changes. Now the `taa_sample will be reset when performing an animation playback in the 3d viewport.
2020-03-26Fix T75081: RNA path For FFMPEGSettings missingMatt Rossman
2020-03-26Cleanup: redundant cast, unused argumentsCampbell Barton
2020-03-26Fix crash with missing NULL check accessing grease pencil paintCampbell Barton
2020-03-26Fix crashes accessing inactive screen propertiesCampbell Barton
2020-03-26Fix crash accessing length unit settingsCampbell Barton
2020-03-26Fix crash accessing the tool with no active spaceCampbell Barton
2020-03-26Fix crashes from various missing checks in operator poll functionsCampbell Barton
Issues exposed by 'bl_run_operators.py' utility.
2020-03-26Fix crash when make proxy failed to assign a proxyCampbell Barton
2020-03-26Fix crash setting the brush with the current brush was unsetCampbell Barton
2020-03-26Fix crash closing a window in background modeCampbell Barton
2020-03-26Cleanup: use doxy sections & add missing sectionsCampbell Barton
2020-03-26Fix T74417: Freestyle render removes image texture usersBrecht Van Lommel
This simplifies freestyle render pipeline integration so we don't have to do much manual ID user management at all. The complexity here was legacy from Blender Internal. Based on fix provided by Sybren A. Stüvl.
2020-03-26Fix T74711: tiling brush option in image editor not working anymoreBrecht Van Lommel
This makes it work again at least for the non-UDIM case. For UDIM it's not great still but I'll consider that a known limitation. A proper solution is probably to find the closest tile at the start of the stroke and then only paint in that one tile for the rest of the stroke.
2020-03-26UI: rename image source Tiled to UDIM Tiles for easier discoveryBrecht Van Lommel
2020-03-26Fix T75090: crash with old NVIDIA drivers after overlay refactorBrecht Van Lommel
Work around GLSL compiler bug with backslash in preprocessor macros.
2020-03-25Fix error after recent change when WITH_INTERNATIONAL=OFFBrecht Van Lommel
Always need to install font files now.
2020-03-25Cleanup: typo in printPhilipp Oeser
2020-03-25UI: remove non-unicode font and simplify default font loading codeBrecht Van Lommel
There is no need to have another font embedded in the Blender executable, we can assume the bundled font exists. In the future we may provide a fallback if the font specified by the user in the preferences is missing a character, but that can use our bundled international font. Differential Revision: https://developer.blender.org/D6854
2020-03-25UI: always use international fontBrecht Van Lommel
This means Blender can display more text correctly without having to enable user interface translation. Previously the quality of the font was lower, but that has been fixed now. The font files have now been ungzipped, which results in faster file loading as Freetype can read only the parts of the file that it needs. Blender download size should not increase since the release package is compressed. This includes improvements for Cyrillic characters from the latest DejaVu Sans fonts from D6960, contributed by Harley Acheson. Fixes T74097. Differential Revision: https://developer.blender.org/D6854
2020-03-25Fix VR viewer offset on session start with no positional trackingJulian Eisel
The current viewer pose position as determined by the OpenXR runtime would be applied as offset. This offset should however only be set when toggling the positional tracking while the session already runs.
2020-03-25Alpha hash support for hair in EEveeJoe Eagar
This patch adds support for alpha hash for hair rendering in EEvee. Here's a comparison of with alpha hashing: {F7588610} And no alpha hashing: {F7588615} Note that this needs "soft shadows" enabled, otherwise shadows will be noisy; here's a render with soft shadows disabled: {F7588621} Reviewed By: fclem Differential Revision: https://developer.blender.org/D5221
2020-03-25Cleanup: use doxy sectionsCampbell Barton