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
2021-03-01Cleanup: move logic to copy the previous event state to a functionCampbell Barton
2021-03-01Cleanup: minor change to click detection checksCampbell Barton
Change order of checks for more convenient click-detection debugging.
2021-03-01WM: don't set event prevval/prevtype on cursor motionCampbell Barton
Currently the intended behavior regarding prevval/prevtype isn't handled consistently. However, including cursor motion causes events in `wm->queue` and `wm->eventstate` to behave differently, where `wm->eventstate` ignores motion (necessary for click detection). This makes checks from `wm->eventstate` to events in the queue fail. This reverts 39919e35326c732141bfd2d740b19000b6bc1d51, using the `event.type` instead of it's previous type. This works as it includes mouse button release events.
2021-03-01Cleanup: spellingCampbell Barton
2021-02-28Fix T86082 Bevel messed up UVs on some multisegment bevels.Howard Trickey
When polygons around a bevel are rebuilt, sometimes UVs are merged around a new vertex in the case of the face opposite a single edge being beveled on a 3-edge vertex. This should not have been done if any of the edges at that vertex were a seam.
2021-02-28Fix T85948 Exact boolean crash with some nonplanar ngons.Howard Trickey
Triangulating ngons could fail with the method that was being used: projecting along the dominant normal axis and then using CDT. It could fail if the ngon has self crossings or might be so after the described projection. Switched to using projection along the normal itself, and also to using polyfill which produces some kind of triangulation no matter what in such circumstances. This will also likely be faster if there are a lot of ngons in the meshes, since the exact arithmetic CDT was being used before, and now float arithmetic is used.
2021-02-27Fix T85886: Rotate Tool and Adjust Last Operation - angles invertedGermano Cavalcante
The constraint was not set when redoing. This commit also removes `postInputRotation`. I really couldn't see a use for it.
2021-02-27Fix T86028: Crash when loading file with missing libraries.Bastien Montagne
Regression from rB53d13b6f5387c68.
2021-02-27Fix (unreported) broken OCIO from install_deps.Bastien Montagne
Looks like they removed static libs by default in OCIO 2.0, for some historical reasons `install_deps` was enforcing using only static libs for this one, now removed it so that Blender buil can use usual so's.
2021-02-27Fix T85987: Selection when GP is parentedFalk David
When a GP object was parented to e.g. a bone, box selection as well as point selection were broken in that the selection from the user would not correlate with what was actually being selected. The issue was that box and point selection did not use the active evaluated stroke data. The fix uses the correct data. Reviewed By: antoniov Maniphest Tasks: T85987 Differential Revision: https://developer.blender.org/D10555
2021-02-27Fix error converting simulated events press/release to clicksCampbell Barton
Move logic that sets previous event state into WM_event_add_simulate.
2021-02-27RNA: add Region.data member to access RegionView3DCampbell Barton
Without this, the RegionView3D could only be accessed from `context.region_data`, not the region.
2021-02-27Geometry Nodes: Add "Location" output to Attribute Proximity nodeVictor-Louis De Gusseme
This patch adds an output field to the Attribute Proximity node and renames the existing string socket from "Result" to "Distance". - The "Distance" output contains distance to the closest position on the Target geometry. - The new "Location" output contains the coordinates of the closest position on the Target geometry. A basic use case for this data is a simple shrinkwrap operation. Differential Revision: https://developer.blender.org/D10415
2021-02-26CMake/deps: Adjust OSL shader directorySebastián Barschkis
The location of the shaders changed with OSL 1.11.10. This commit is therefore in addition to D10212. @sybren With the latest SVN libraries, I am fairly certain there is a "OSL not found" in the CMake output. Can you check on Linux? @LazyDodo Since you haven't pushed the new OSL libs yet, this should not be a problem on Windows. So this will only be needed whenever those land. Reviewed By: LazyDodo Differential Revision: https://developer.blender.org/D10552
2021-02-26Cleanup: unused class memberKévin Dietrich
2021-02-26Fix crash with dyntopo on tools that use cached vertex infoPablo Dobarro
Tools can cache data related to the mesh topology for later use. This data is indexed by vertex index, so it will be invalid after dyntopo changes the topology during the stroke. Reviewed By: JacquesLucke Differential Revision: https://developer.blender.org/D10550
2021-02-26CMake/deps: Fix LLVM and OSL buildsSebastián Barschkis
This commit is addition to D10212. Apple arm64 support was left out in that patch.
2021-02-26Fix (unreported) missing 3DView update after some Outliner Override operations.Bastien Montagne
2021-02-26Cleanup: Use find_first_not_of.Jeroen Bakker
2021-02-26Fix: Compile issue Windows.Jeroen Bakker
2021-02-26Cryptomatte: Manifest Parsing.Jeroen Bakker
This patch adds manifest parsing to Cryptomatte. Normally when loading cryptomatte layer from an OpenEXR file the manifest contains data to convert a hash to its original name of the object/material. In the future we want to use this to support lookup of cryptomatte hashes and show it to the user. Currently this logic isn't available to users (for now), but is required by D3959 where a new cryptomatte workflow is implemented.
2021-02-26GPencil: Cancel Fill if the filled area is not closedAntonio Vazquez
Fill only if it never comes in contact with an edge. It is better not to fill than to fill the entire area, as this is confusing for the artist. Differential Revision: https://developer.blender.org/D10536
2021-02-26Assets: Preview rendering for Action datablocksSybren A. Stüvel
Render previews for Action datablocks by rendering the scene camera with the Workbench (solid) engine. The //look// can be configured by setting the scene's render engine to Workbench and editing the scene's shading properties. It is assumed that the pose has already been applied and that the scene camera is capturing the pose. In other words, the render function just renders from the scene camera without evaluating/applying the Action stored in `preview->id`. The ID is only used to determine its type and to store the resulting preview. Not all code paths that lead to the `action_preview_render()` function actually provide a depsgraph. The "Refresh Asset Preview" button (`ED_OT_lib_id_generate_preview`) does, but `WM_OT_previews_ensure` does not. Reviewed By: Severin Differential Revision: https://developer.blender.org/D10543
2021-02-26CMake/Deps: Python 3.9.2Ray Molenkamp
Straight up minor version bump, no anomalies to report Reviewed By: sebbas, sybren Differential Revision: https://developer.blender.org/D10523
2021-02-26UX: Readfile: Libraries error messages: avoid wall of warnings.Bastien Montagne
When a lot of libraries or linked IDs were missing/not found when loading a .blend file, Blender used to show one warning report for each missing item, potentially covering the user's screen with a giant unuable popup. Now it will instead generate a single warning with amount of missing lib files and linked IDs. Each missing item is still reported individually, but only as `INFO`, so it will still show up in the console or Info editor.
2021-02-26Cleanup: use early exitCampbell Barton
2021-02-26Cleanup: use boolean argumentsCampbell Barton
2021-02-26Fix particle-edit crash on undo/redoCampbell Barton
Undo/redo was crashing & asserting. There ware two bugs: - Entering particle system edit-mode requires an evaluated depsgraph. - The active object could get out of sync when undo/redo moves between different modes. The new test 'view3d_mesh_particle_edit_mode_simple' in `tests/ui_simulate/test_undo.py` exposes both issues.
2021-02-26Undo: use low level API calls to enable font edit-modeCampbell Barton
While I couldn't redo a bug in this case, it's possible for the active object to become out of sync in rare cases, so best use these functions.
2021-02-26Undo: don't log an error when the undo limit has been exceededCampbell Barton
2021-02-26Cleanup: move comment into function doc-stringCampbell Barton
2021-02-26Cleanup: Clang FormatAaron Carlisle
2021-02-26Fix T84953: Incorrect tooltip for dragging collectionsHans Goudey
"Shift to parent" does not make any sense for collections since they don't have parenting like objects. This commit just adds a simple check for whether the first drag ID is an object before displaying that part of the message. Differential Revision: https://developer.blender.org/D10203
2021-02-26Cleanup: commented/out of date rpdb2 importAaron Carlisle
2021-02-26PyAPI Docs: Update Sphinx to 3.5.1Aaron Carlisle
2021-02-25Icons: Add icon for the upcoming spreadsheet editorJulian Eisel
The editor is being worked on by the geometry nodes team. Icon created by Andrzej Ambroz (jendrzych). Addresses https://developer.blender.org/T85925.
2021-02-25Icons: Update blender_icons.svg to have a document backgroundJulian Eisel
When opening the SVG you wouldn't even see the icons, since they are all white now. You'd always have to set up a document background color and make sure to undo that again before saving the file, so it's not written into it. Just make everyone's life easier by saving the file with a proper background (gray with checkerboard).
2021-02-25Icons: Resaved blender_icons.svg in new Inkscape versionJulian Eisel
Inkscape often does a number of unrelated changes when saving an SVG, not sure if these are just formatting changes in the source SVG text or if there's more to it. Either way this makes adding new icons hard since you want to avoid these unrelated changes. Saving the file in a new Inkscape version every once in a while should mitigate the problem a bit. Regenerating the icons (e.g. through `make icons`) shows no difference in the output. Note that I also ran "Clean Up Document" in Inkscape, but that doesn't seem to have changed anything/much.
2021-02-25Improve Purge operator.Bastien Montagne
The Purge operator to remove unused IDs can now also remove 'indirectly unused' data-blocks (those only used by unused ones, recursively). It can also now only operate on linked, or on local data. All those options are exposed in the `File -> Cleanup` main menu. The behavior of the `Purge` button in the Outliner remains unchanged, needs some UI/UX design task for that.
2021-02-25Py API: update `bpy.data.orphans_purge` to support new options.Bastien Montagne
This API function can now purge recursively in a single call, and choose to ignore (not purge) local or linked IDs. Default behavior (with not argument) remains unchanged, so no API breackage here.
2021-02-25Fix (unreported) bad usercount handling in batch ID deletion.Bastien Montagne
This was rather obscure and non-critical issue, but in some cases ID usercount of some deleted IDs from batch-deletion code would not be properly nullified, which would then assert later in actual deletion code.
2021-02-25BKE_lib_query: Add a function to detect and tag all unused IDs.Bastien Montagne
With the option to detect orphaned data recursively (i.e. if ID `a` is the only user of ID `b`, and ID `a` is unused, ID `b` will also get tagged as unused). To be used by the Purge operation.
2021-02-25UI: Fix icon width and padding in search menusHans Goudey
Previously the padding size and the width saved for the icon were constant regardless of the zoom level. This resulted in overlapping icons and text, and ugly padding with more extreme zoom levels. We can retrieve the size of the row from the `rect` argument.
2021-02-25BLI: simplify adding an arbitrary value to a resource containerJacques Lucke
With this is becomes easily possible to store a lambda in a resource collector so that it will be freed when the resource collector is freed.
2021-02-25Cleanup: quiet warningJacques Lucke
"loop variable 'item' is always a copy because the range of type ..."
2021-02-25Fix T85959 EEVEE: DOF with "Jitter Camera" brokenClément Foucault
Was caused by recent changes in window_translate_m4 by rBbb2af40ec7dd.
2021-02-25Fix T85979: Attribute missing warning with empty geometryHans Goudey
An error doesn't make sense in these situations because we don't expect to find attributes on empty geometry, and an empty geometry set is a valid situation. Note that we can't use `component.is_empty` here, because often the component is visually "empty" but still has a point cloud with no points or a mesh with no vertices.
2021-02-25Fix macOS SSE support not detected correctly after recent changesBrecht Van Lommel
Due to moving the code the test binary was incorrectly compiled with OpenMP flags. Move setting of the OpenMP flags to the appropriate place.
2021-02-25Fix T85976: Outliner crash deleting collection with multiple windowsCampbell Barton
2021-02-25PyAPI Docs: Add 'gpu.state' moduleGermano Cavalcante
Also exclude `gpu.shader` from quick tests.