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-01Tracking: Deal with gaps and long tracked segments bettertracking_scopesSergey Sharybin
When there is a gap during looking for a reference marker for the scopes use the first marker after the gap. It helps re-positioning the marker back in place after it got ocluded. Also cosmetic changes on the labels.
2021-03-01Tracking: Implement previous/next keyframe scopesSergey Sharybin
The purpose of these scopes is to give more visual reference to a VFX artist: this way the artist can (re)position the marker more accurately when it starts to slide. Before this change it was always more of a guess work about where exactly the marker was at the previous keyframe. There are some weak aspects of the patch related on some rather annoying duplicated lines about calling an utility function for each of 3 scopes. Ideally there needs to be some sort of foreach scope utility, but it is not as trivial as it sounds since the editors implementation code is in ED module, which is not available by blenloader and blenkernel. The interface aspects still needs some work. Currently it is 3 scopes placed in one column. Maybe it needs to be a flow, or some collapsable box? Differential Revision: https://developer.blender.org/D10567
2021-03-01Harden checks in datatoc_icon binarySergey Sharybin
The goal of the change is to perform check for attempts of icons being overwritten on canvas. The check is based on checking original coordinate of icons against all read icons. If there are two icon files which have same original an error will be reported. The report includes both file names to make it easier to troubleshoot. This change will allow to early-on catch issues which we currently have with the release environment: official Linux builds might have different icon from Blender compiled locally. This is because the order in which directory listing is traversed is not defined, so it's like a race condition between two files to win the place in the final canvas. There is still possible improvement in the code to move more fields into the context structure. This is beyond of goal of this change. Note that before committing this change icons must be brought back to their consistent state. Otherwise the build will fail. Differential Revision: https://developer.blender.org/D9715
2021-03-01Work around T86015: Crash undoing in certain scenario (disabling Global Undo).Bastien Montagne
Simply disable advanced 're-use current blend data` process when loading a memfile step and Global Undo is disabled, since there is no way to ensure we have a proper 'differential' state in the stack then. NOTE: this is a quick work-around to fix the crash, not a satisfying solution by far (pretty sure there can still be crashes if you then re-enable Global Undo afterwards e.g.).
2021-03-01Fix T86087: Assert when changing compositor node value or invoking tooltip.Bastien Montagne
Regression from rBde25b79ff5c4, this flag is inconsistent currently for embedded IDs, needs to be sorted out, see T86119.
2021-03-01Fix T84658: Anisotropic BSDF - most modes not using Screen SpacePhilipp Oeser
Reflection Anisotropic is not really supported in Eevee, but since code looks like it is just intended to make it behave like glossy, it should function like it too. Seems like the internal calling from `node_bsdf_glossy` from `node_bsdf_anisotropic` has swapped arguments. Also: ssr_id is available for SH_NODE_BSDF_ANISOTROPIC as well (see `ntree_tag_bsdf_cb`), so why not use it? Maniphest Tasks: T84658 Differential Revision: https://developer.blender.org/D10547
2021-03-01Fix T86116: Failure to detect click events with modifier heldCampbell Barton
Click detection logic relied on the event queue not accumulating events as newly added events at the end of the queue adjusted `wm->eventstate->prev{val/type}` which was then compared with events at the front of the queue. This made Ctrl-Click fail to detect the click as releasing Ctrl set the previous value before the previous event was handled. In practice this only happened in heavy scenes, updating 10 fps or lower. It also made automated tests fail that accumulate events before handling them.
2021-03-01WM: set previous values for events in the event queueCampbell Barton
This makes event's prevval and prevtype usable for events in the queue. Previously they were unused, except as a hack for modal keymap handling. This is needed to fix T86116, where the `wm->eventstate->prev{val/type}` are set to values from events that have not been processed.
2021-03-01WM: prevent model keymap handling overwriting previous event valuesCampbell Barton
`wmEvent.prevtype` & `wmEvent.prevval` were overwritten when used in modal keymaps. Now they are restored to their original values.
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.