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-02Fix build error after last commitHans Goudey
2021-03-02Cleanup: Rename node UI storage functionHans Goudey
"ensure" makes more sense in this case because the function actually adds an item to the map if one doesn't exist yet.
2021-03-01GPU Python: Implement gpu.texture.from_imageGermano Cavalcante
It can be useful to replace `image.bindcode` and `image.gl_load`. Used for example in https://docs.blender.org/api/current/gpu.html#d-image Reviewed By: brecht Differential Revision: https://developer.blender.org/D10458
2021-03-01CMake: reduce Neon related output on Intel platformsBrecht Van Lommel
* Only try to find sse2neon if Neon detected * Only run Neon support test once
2021-03-01Cleanup: rename some animation-related functionsSybren A. Stüvel
Rename: - `BKE_animsys_store_rna_setting` → `BKE_animsys_rna_path_resolve` - `BKE_animsys_read_rna_setting` → `BKE_animsys_read_from_rna_path` - `BKE_animsys_write_rna_setting` → `BKE_animsys_write_to_rna_path` The concept of "RNA setting" is unclear; the new names reflect better what the functions actually do. No functional changes.
2021-03-01Fix T85981: Undo on linked rig with overrides loses custom shapes.Bastien Montagne
While generally speaking bone shapes objects should not be overridden, it can happens in some cases, and should be properly supported then.
2021-03-01Cleanup: refactor `BKE_animsys_store_rna_setting()`Sybren A. Stüvel
Lower the cognitive complexity of `BKE_animsys_store_rna_setting()` by flipping conditions and using early returns. No functional changes.
2021-03-01Cleanup: remove superfluous `animsys_evaluate_action_ex()` callSybren A. Stüvel
Remove `animsys_evaluate_action()` and rename `animsys_evaluate_action_ex()` to it. The only function of the former was to call the latter, with the exact same parameters. No functional changes.
2021-03-01GLog: Lower default logging severity to INFOSergey Sharybin
Before this change messages of ERROR and above were printed. This change makes it so LOG(INFO), LOG(WARNING), LOG(ERROR) and LOG(FATAL) will be printed to the console by default (without --debug-libmv and --debug-cycles). On a user level nothing is changed because neither INFO nor WARNING severity are used in our codebase. For developers this change allows to use LOG(INFO) to print relevant for debugging information. Bering able to see WARNING messages is also nice, since those are not related to debugging, but are about some detected "bad" state. After this change the LOG(INFO) is really treated as a printf. Why not to use printf to begin with? Because it is often more annoying to print non-scalar types. Why not to use cout? Just a convenience, so that all type of logging is handled in the same way. When one is familiar with Glog used in the area, it is easy to use same utilities during development. Also, it is easy to change LOG(INFO) to VLOG(2) when development is done and one wants to keep the log print but make it only appear when using special verbosity flags. The initial reason why default severity was set to maximum possible value is because of misuse of VLOG with verbosity level 0, which is the same as LOG(INFO). This is also why back in the days --debug-libmv was introduced. Now there is some redundancy between --debug-libmv, --debug-cyles and --verbose, but changes in their meaning will cause user level side effects. Differential Revision: https://developer.blender.org/D10513
2021-03-01Libmv: Avoid use of LOG(INFO) in solverSergey Sharybin
Usage of LOG(INFO) actually went against own guidelines in the logging.h: the INFO is for messages which are to be printed regardless of debug/verbosity settings.
2021-03-01Cryptomatte: Flexible Definition of CryptomatteLayers.Jeroen Bakker
Cryptomatte layers in Blender are predefined. Other render engines might have other naming schemes. This patch will allow creation of cryptomatte layers with other names. This will be used by D3959 to load cryptomatte openexr files from other render engines. EEVEE and Cycles still use our fix naming scheme so no changes are detectable by users.
2021-03-01Fix Crash: Access Unallocated Memory.Jeroen Bakker
2021-03-01Cleanup: Missing const keyword.Jeroen Bakker
2021-03-01Cleanup: Mention Correct Types In CommentsJeroen Bakker
2021-03-01Fix Cycles build error without Embree on WindowsBrecht Van Lommel
Don't use ssize_t, it's not available in MSVC.
2021-03-01UI: Correct output attribute name in proximity nodeHans Goudey
I made an incorrect comment in patch review that "Location" should be used instead of position. "Position" is more appropriate here since it refers to generic data rather than an object origin. "Position" is also the name we chose for the attribute for this reason.
2021-03-01Build-system: Use C-linkage for internal interface headerJulian Eisel
That way the header can be included in C++ files.
2021-03-01Cleanup: move some drawing code into ed_draw.cChristoph Lendenfeld
Move some drawing code from `area.c` and `ed_util.c` into `ed_draw.c`. This is to support the new generic slider that wil be used in T81785. No functional changes. Reviewed By: #animation_rigging, #user_interface, Severin, sybren Maniphest Tasks: T81785 Differential Revision: https://developer.blender.org/D9313
2021-03-01Add `--open-last` CLI argument that opens the most recent fileSybren A. Stüvel
Add a CLI argument `--open-last` that opens the most recent file, effectively doing the same as {key Ctrl Shift O}, {key Enter} after starting Blender. When there are no known recent files, print a warning and do nothing, showing the startup file instead. Note that this does not try to be smart about restoring the last Blender session. It just opens the file from disk, as if the user had typed `blender $(head -n1 ~/.config/blender/2.93/config/recent-files.txt)`. There is also no smartness when that file cannot be opened; it behaves exactly the same as typing the most recent filename on the CLI. Reviewed by: mont29, campbellbarton Differential Revision: https://developer.blender.org/D10563
2021-03-01Cleanup: Use LISTBASE_FOREACH and LISTBASE_FOREACH_MUTABLE macroGermano Cavalcante
2021-03-01CMake/deps: Added new macOS arm64 build dependency to instructionsSebastián Barschkis
macOS arm64 has extra requirements.
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