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-10-22Fix errors in be171b295fc7dGermano Cavalcante
´´´ error C4133: 'function': incompatible types - from 'float [2]' to 'int *' error C4133: 'function': incompatible types - from 'const int [2]' to 'const float *' ´´´
2021-10-22Cleanup: Compile warningsAaron Carlisle
2021-10-21Assets: Enable material and world assets by defaultJulian Eisel
Both material and world assets should be ready to use as non-experimental feature. They were not enabled by default yet because the work from the previous commit was needed first. Objects should follow soon. Maniphest Task: https://developer.blender.org/T91752
2021-10-21Assets: Allow specific data-block types to be enabled by defaultJulian Eisel
Updates UI code so that we can enable the asset UI for specific data-block types by default, i.e. irrespective of the "Extended Asset Browser" experimental feature. "Mark as Asset" and "Clear Asset" are always visible in the Outliner context menu now, but are grayed out if not applicable and show a disabled hint in the tooltip. A known side-effect of this: The "Mark as Asset" and "Clear Asset" operators are enabled for action data-blocks now, even though only pose actions created through the Pose Libraries add-on are supported. If this is something worth addressing is being discussed still. Differential Revision: https://developer.blender.org/D12955 Reviewed by: Sybren Stüvel
2021-10-21Cleanup: unused codePablo Vazquez
Also fixes incompatible types.
2021-10-21View3D Snap Cursor: Fix drawing state incorrectly resetGermano Cavalcante
The viewport was being changed, so it needs to be reset.
2021-10-21Cleanup: Use array utility for cursor eventsAaron Carlisle
2021-10-21Fix T92363: OptiX fails with ambient occlusion node, after recent changesBrecht Van Lommel
This triggered a compiler bug where it does not handle the sub.s16 PTX instruction. Instead refactor the code so we don't need to do uint16_t subtraction at all. Also update OptiX device to remove the AO pass direct callable. Thanks Patrick Mours for figuring this out.
2021-10-21Tests: updated Python bundled modules testBrecht Van Lommel
Add the new zstandard module, as well as previously missing ones. Ref D12777, T88438
2021-10-21Nodes: Fix missing variablePablo Vazquez
2021-10-21Node Editor: Introduce color overlay and dashed wires theme settingPablo Vazquez
This patch includes code from D9891 and D12754, so credit goes to Juanfran and Dalai. I updated the patches to work with `master` and with the new overlay toggle. The reason to include both changes as part of one patch is that the dimmed dashed lines work much better together with colored wires. Theme setting for dash opacity: {F11370574, size=full} {F11286177, size=full, autoplay, loop} {F11149912, size=full} For adding the overlay I used `SpaceImageOverlay` as reference, although I'm not familiar with this code so there might be mistakes. Reviewed By: #user_interface, HooglyBoogly Differential Revision: https://developer.blender.org/D12886
2021-10-21Geometry Nodes: Attribute search in the modifierHans Goudey
This adds attribute search to the geometry nodes modifier for the input and output attributes. The "New" search item is only shown for the output attributes. Some of the attribute search code is extracted to a new file in the interface code, to avoid some code duplication. The UI code required two fixes so that the search would work for dynamic length strings (IDProperties do not have a fixed size). Since this does changes to the UI layout of the modifier, I also addressed T91485 here. Differential Revisiion: https://developer.blender.org/D12788
2021-10-21Fix T92371: Move AZONE_REGION When OverlappedHarley Acheson
Overlapped regions have transparent backgrounds, so when placing AZONE_REGION we need to move them in to the content edge. See D12956 for details and examples. Differential Revision: https://developer.blender.org/D12956 Reviewed by Hans Goudey
2021-10-21Cleanup: Use common define for menu separator arrowHans Goudey
2021-10-21Geometry Nodes: Update bounding box to work on individual instancesHans Goudey
This commit makes the bounding box node work on each unique geometry (including instances) individually instead of making one large bounding box for everything. This makes the node much faster, and is often the desired result anyway. For the old behavior, a realize instances node can be used in front of this node (versioning adds it automatically). The min and max outputs now only output the values from the realized geometry. Differential Revision: https://developer.blender.org/D12951
2021-10-21Suppress the unused parameter warning from D9551.Alexander Gavrilov
The parameter is only used in an assert.
2021-10-21Fix tooltip disabled hint not using correct context from the buttonJulian Eisel
To display the "disabled hint" (text explaining why a button is disabled) in a tooltip, it would run the operator poll callback, which could then set a poll message. But the context for the poll check wasn't the one from the button, so the poll may give a different result (and disabled hint) than the check of the button itself did. Make sure it uses the exact context from the button.
2021-10-21Asset Catalogs: add test for backslashed catalog pathsSybren A. Stüvel
No functional changes necessary, test already succeeds.
2021-10-21Fix: Curve trim crash on splines with no edgesHans Goudey
2021-10-21Asset Catalogs: refresh simple name when renaming catalogSybren A. Stüvel
When renaming an asset catalog, also update its simple name. Catalogs will most likely be created from within Blender, so via the catalog tree in the asset browser. Here catalogs are always named "Catalog" until the user renames them, which was reflected in all simple names being "Catalog".
2021-10-21Asset Catalogs: treat first-loaded catalog as main catalogSybren A. Stüvel
When there are multiple catalogs with the same path (so different UUIDs all mapped to the same catalog path), treat the first-loaded one as the main catalog for that path, and the rest as aliases. This ensures that the UUID of a catalog (as chosen in the tree UI and thus interacted with by users) is stable, regardless of whether by some coincidence later another catalog with the same UUID is created.
2021-10-21Cleanup: rename & restructure `AssetCatalogPathCmp`Sybren A. Stüvel
Rename `AssetCatalogPathCmp` to `AssetCatalogLessThan`: - it compares more than paths (so no more `Path` in the name), and - performs a less-than operation (so no more `Cmp` in the name). Also restructure its code to make an extra upcoming comparison easier to add. No functional changes.
2021-10-21Geometry Nodes: fix force-computing multiple non-output socketsJacques Lucke
There were some issues when multiple inputs of the same node were forced to be computed (e.g. for the spreadsheet), but none of the node outputs (if existant) were used. Essentially the node was marked as "finished" too early in this case. This fix is necessary for the improved viewer node (T92167).
2021-10-21Nodes: add utility to find NodeRef for nodeJacques Lucke
In the future `NodeTreeRef` could have a lazy initialized map, but for now this is good enough.
2021-10-21Cycles: add shadow path compaction for GPU renderingBrecht Van Lommel
Similar to main path compaction that happens before adding work tiles, this compacts shadow paths before launching kernels that may add shadow paths. Only do it when more than 50% of space is wasted. It's not a clear win in all scenes, some are up to 1.5% slower. Likely caused by different order of scheduling kernels having an unpredictable performance impact. Still feels like compaction is just the right thing to avoid cases where a few shadow paths can hold up a lot of main paths. Differential Revision: https://developer.blender.org/D12944
2021-10-21Windows: Fix finding python for build helpersRay Molenkamp
It was still looking for the 3.7 folder rather than 3.9
2021-10-21IDManagement: Assign current Main's lib to newly created IDs.Bastien Montagne
This is mainly for doversion code, when it needs to create new IDs those should be considered as part of the same library as the current Main's one. No practical changes are expected here, this is more of a general consistency fix, and a pre-requisite for {T92333}.
2021-10-21Fix T92355: Quadriflow crashes with zero length edgesSebastian Parborg
Add a check for zero length edges to the manifold check as quadriflow doesn't handle meshes with these.
2021-10-21Fix T92272: Rigid Body Copy to Selected "Margin" crashPhilipp Oeser
Caused by {rB43167a2c251b} Code from above commit called RNA updates with a NULL scene. This was already commented (and mostly handled) in rB5949d598bc33, but the reported case was missing in that commit. This fixes the crash in a similar manner as rB5949d598bc33. Maniphest Tasks: T92272 Differential Revision: https://developer.blender.org/D12953
2021-10-21Fix T92169: "View Selected" on Custom Boneshape with transform wrongPhilipp Oeser
Since the introduction in rBfc5bf09fd88c, `BKE_pose_minmax` was not taking these custom transforms into account (making "View Selected" ignoring these as well and focusing on the bone instead). Now consider these transforms in `BKE_pose_minmax`. Maniphest Tasks: T92169 Differential Revision: https://developer.blender.org/D12942
2021-10-21Deps: Python, bundle zstandard packageSybren A. Stüvel
This package allows Python scripts to handle compressed blend files (see rB2ea66af742bc). This is for example needed by Blender Asset Tracer to send files to a Flamenco render farm. This change includes a new `WITH_PYTHON_INSTALL_ZSTANDARD` build-time option, to control whether to actually install the package. For this the already-existing approach for Requests was copied. Reviewed By: LazyDodo, mont29, brecht Differential Revision: https://developer.blender.org/D12777
2021-10-21Deps: Python, bump bundled packages to their latest versionsSybren A. Stüvel
certifi : 2020.12.5 → 2021.10.8 chardet : 4.0.0 → charset-normalizer 2.0.6 cython : 0.29.21 → 0.29.24 idna : 2.10 → 3.2 numpy : 1.19.5 → 1.21.2 (which makes it possible to remove our patch) requests: 2.25.1 → 2.26.0 urllib3 : 1.26.3 → 1.26.7 Nowadays `requests` no longer depends on `chardet` but on `charset-normalizer`. That project describes itself as: > A library that helps you read text from an unknown charset encoding. > Motivated by chardet, I'm trying to resolve the issue by taking a new > approach. All IANA character set names for which the Python core library > provides codecs are supported. Reviewed By: LazyDodo, mont29, brecht Differential Revision: https://developer.blender.org/D12777
2021-10-21Deps: Bump Python 3.9.2 → 3.9.7Sybren A. Stüvel
Bump Python from 3.9.2 to 3.9.7, which is the latest 3.9 release at this moment. Updates to bundled Python packages will follow in a separate commit. Reviewed By: LazyDodo, mont29, brecht Differential Revision: https://developer.blender.org/D12777
2021-10-21Cleanup: make HIP and CUDA code more consistentBrecht Van Lommel
Ref D12834
2021-10-21Fix T65532: can't assign a key on Italian apple keyboards.Yevgeny Makarov
Apple's international keyboards have an additional `kVK_ISO_Section` key. With some (Italian, Spanish) keyboard layouts, this is `\`, `[` keys which Blender keymap can use. Right now this key is explicitly set as `Unknown`. Note that `kVK_ANSI_Grave` is located in a different location. Differential Revision: https://developer.blender.org/D12905
2021-10-21Build: remove cmake messages about disabled tests when feature is disabledBrecht Van Lommel
No need to report this, it just adds noise to the cmake config. The messages that we need to keep are the ones about disabling tests when the test file or idiff are missing.
2021-10-21IDManagement: Add option to clear asset data when making ID local.Bastien Montagne
When appending an asset from the asset browser, its asset data needs to be cleared. However, linking an asset (or regular append from the file browser) should not clear such data. In linking case, it would be there again after a blend file reload anyway. So this commit introduces a new `BLO_LIBLINK_APPEND_ASSET_DATA_CLEAR` option. NOTE: in case the appended ID needs to be copied from its linked data (instead of making the later directly local), asset data is lost anyway since it is never copied with the ID currently. Ref. {T91749} and D11768.
2021-10-21Re-bundle Libmv to ensure it is in sync with the repoSergey Sharybin
2021-10-21UI: Header / Tool Settings: Show tool icon when tools are collapsedDalai Felinto
Show the scaled down tool icon when the tool region is collapsed. Show a blank space when the tool region is visible. * Minimize the UI flickering when changing the active tool. * Show the active tool when the tool region is collapsed. * Smaler header footprint (the tool name is not visible). This is a follow up for T91536. Differential Revision: https://developer.blender.org/D12939
2021-10-21Fix T92387: crash in legacy point distribute nodeJacques Lucke
This was caused by rB40c3b8836b7a36303ea9c78b0932758cbf277f93. The same fix exists in the Distribute Points on Faces node.
2021-10-21Install_deps: Rename `_VERSION_MAX` to `_VERSION_MEX` variables.Bastien Montagne
We define the minimum exclusive number for our supported dependencies versions, and not the maximum inclusive number. Thanks to @sybren for raising this point and finding the 'mex' math term.
2021-10-21Cleanup: VSE code docstringRichard Antalik
2021-10-21Cleanup: clang-formatCampbell Barton
2021-10-21Cleanup: unused functuion warningsCampbell Barton
2021-10-21Docs: note why BLI_string_join_arrayN needs to nil terminateCampbell Barton
2021-10-21Cleanup: match cursor hide option with naming for the 3D viewportCampbell Barton
2021-10-21Cleanup: Use array as a parameter for event x/y functionsCampbell Barton
This change simplifies the parameter list for these functions and reduces the chance of typos mixing up array indices. Missed in rB69102786047dccdcbaee0df6307a8c3364d28fe0.
2021-10-21LibLink: ensure objects are selectable when "Select" is enabledCampbell Barton
Appended objects could be hidden, making any further operations potentially skip the newly added objects. Now FILE_AUTOSELECT asserts when newly added options aren't selectable.
2021-10-21Cleanup: de-duplicate function to instantiate objectsCampbell Barton
De-duplicates wm_append_loose_data_instantiate_object_base_instance_init and object_base_instance_init. Add BLO_object_instantiate_object_base_instance_init which also adds to a collection since all callers did this.
2021-10-21Fix type error in 5297bf318e6f18c9165c9968728e6c9d27f8ae3cCampbell Barton