Commit Graph

150077 Commits

Author SHA1 Message Date
Omar Emara
cb977e2cbc Fix: Distance Matte DNA enum has wrong value
The enums for the Distance Mate node had wrong values that weren't
inline with RNA values. This patch corrects them and uses the enum in
RNA to be more robust in the future. The wrong values weren't used
directly, so this had no effect on the end user.
2024-10-28 12:49:20 +03:00
Campbell Barton
8682e4087b GHOST/Wayland: support pasting images from a copied file
Support pasting images into Blender which have been copied from a
file manager (matching macOS).
2024-10-28 13:40:26 +11:00
Campbell Barton
d367e6e2b5 Cleanup: share clipboard paste logic between text & image paste
De-duplicate low level logic that reads the clipboard in a thread.

Instead, expand the utility function for reading from the clipboard
with arguments so it can be used for images & text.
2024-10-28 13:40:25 +11:00
Campbell Barton
eb83158325 Cleanup: move URI range extraction into its own a function 2024-10-28 13:40:23 +11:00
Campbell Barton
e31366c3bb Merge branch 'blender-v4.3-release' 2024-10-28 13:33:28 +11:00
Campbell Barton
d6d612dc46 Fix memory leak pasting images in Wayland 2024-10-28 12:38:22 +11:00
Campbell Barton
c72076aec8 Merge branch 'blender-v4.3-release' 2024-10-28 09:52:18 +11:00
Campbell Barton
a312bfe6d5 Fix use of undefined variable in blend2json utility 2024-10-28 09:50:57 +11:00
Campbell Barton
f1eb98c427 Merge branch 'blender-v4.3-release' 2024-10-28 09:38:05 +11:00
Campbell Barton
59c52ef2cf Cleanup: remove unused import in CLI example 2024-10-28 09:36:28 +11:00
Campbell Barton
f13ca4dad0 Merge branch 'blender-v4.3-release' 2024-10-27 23:26:31 +11:00
Campbell Barton
901da07c59 Merge branch 'blender-v4.3-release' 2024-10-27 23:26:26 +11:00
Campbell Barton
41cb811849 Cleanup: update the default theme
Re-generate the default theme from blender_theme_as_c.py
2024-10-27 23:24:21 +11:00
Campbell Barton
4ac25883a3 Update blender_theme_as_c to match renamed define 2024-10-27 23:22:13 +11:00
Campbell Barton
88b76bfd1c Merge branch 'blender-v4.3-release' 2024-10-27 22:49:20 +11:00
Campbell Barton
005d439264 Fix industry compatible keymap keys for spreadsheet region toggle
Ctrl bracket keys weren't used for toolbar/UI region toggling.
2024-10-27 22:45:43 +11:00
Campbell Barton
1cf7781596 Cleanup: quiet Python warnings from ruff 2024-10-27 22:35:58 +11:00
Campbell Barton
f3ae90ec96 Cleanup: remove unused function, unused import 2024-10-27 22:35:55 +11:00
Clément Foucault
e9298dced4 GPU: Avoid ShaderCreateInfo object directly inside Map
This avoid uneeded big internal allocation for the map.
2024-10-26 13:51:45 +02:00
Sean Kim
af4974dfaa Cleanup: Remove dead code
Pull Request: https://projects.blender.org/blender/blender/pulls/129391
2024-10-25 20:19:33 +02:00
Sean Kim
71b9238703 Merge branch 'blender-v4.3-release' 2024-10-25 11:18:48 -07:00
Sean Kim
1dd6cdb172 Fix #129334: Multires displays incorrectly in Sculpt mode with materials
Introduced in 853269aeb0

Prior to this commit, the PBVH partitioning process did not work
correctly for multires meshes with materials. Specifically, it failed
upon mapping the partitioned faces into their corresponding corners.

The rough process here is as follows:
* Flatten out the array of face indices into an array of corner indices.
* Sum up each `GridsNode` `prim_indices` corner count into an array.
* Create an `OffsetIndices` from these sums
* Use the `OffsetIndices` to slice the array created at the beginning
  to assign to each node.

However, this process requires that the main PBVH array of corner
indices has the same order as iterating over the nodes, which the
partitioning algorithm does not do.

To solve this, this commit iterates over the Node `prim_indices` `Span`s
in the same order that the nodes are stored when flatting out the
corner data, ensuring a correct mapping.

Pull Request: https://projects.blender.org/blender/blender/pulls/129392
2024-10-25 20:17:39 +02:00
Omar Emara
22930ee04c Compositor: Implement Color Matte for new CPU compositor
Reference #125968.
2024-10-25 11:25:55 +03:00
Omar Emara
ba5c6c8682 Compositor: Implement Chroma Matte for new CPU compositor
Reference #125968.
2024-10-25 11:25:55 +03:00
Omar Emara
a955c9e0b4 Compositor: Implement Channel Matte for new CPU compositor
Reference #125968.
2024-10-25 11:25:55 +03:00
Campbell Barton
c5df2cebed Merge branch 'blender-v4.3-release' 2024-10-25 16:52:00 +11:00
Campbell Barton
98cae94f6b Fix potential out of bounds read in UTF8 string length calculation
The length checking wasn't accounting for null bytes within multi-byte
sequences and could step over the null bytes.

For BLI_strlen_utf8 this could result in an out of bounds read.

In practice most UTF8 data is validated so the extra checks
are mainly to prevent errors on invalid or corrupt UTF8 text.
2024-10-25 16:50:10 +11:00
Campbell Barton
04aa583526 Tests: add UTF8 string copying tests for multi-character truncation
The existing test only checked truncation for a single multi-byte
code-point.

Also add defines for 5 and 6 byte UTF8 code-points.
2024-10-25 14:30:48 +11:00
Campbell Barton
6ad22ce40f Cleanup: move utf8 string copying tests into BLI_string_utf8_test.cc 2024-10-25 14:15:31 +11:00
Campbell Barton
d60f2012c7 Merge branch 'blender-v4.3-release' 2024-10-25 14:08:42 +11:00
Campbell Barton
f9ba08d14c Merge branch 'blender-v4.3-release' 2024-10-25 14:08:40 +11:00
Campbell Barton
259611ca4f AUTHORS: add 1 new author 2024-10-25 14:06:30 +11:00
Leon Marz
1a872e69f3 Fix terminating the EGL connection without a valid display
When wl_display_connect fails don't attempt to disconnect EGL,
no connection will have been made.

Ref: !129301
2024-10-25 13:55:06 +11:00
Campbell Barton
054c26d291 Merge branch 'blender-v4.3-release' 2024-10-25 10:05:01 +11:00
Campbell Barton
51e9654ab2 Merge branch 'blender-v4.3-release' 2024-10-25 10:04:58 +11:00
Campbell Barton
584b96018a Fix #128322: Pack Islands warnings & fails to use tool-settings
Ref !128757
2024-10-25 10:03:30 +11:00
Lukasz Czyz
85907199b7 Fix #127963: UV importance weights in minimum stretch randomly fails
Ref !128757
2024-10-25 10:03:22 +11:00
Campbell Barton
129982daf8 Merge branch 'blender-v4.3-release' 2024-10-25 09:17:41 +11:00
Campbell Barton
1cd2bece60 Fix memory leak on exit for bpy.app.translations members 2024-10-25 09:16:46 +11:00
Sean Kim
7a45c89d7c Merge branch 'blender-v4.3-release' 2024-10-24 14:18:43 -07:00
Sean Kim
420a54a9e4 Fix #129373: Invalid "Cloth" asset shelf category appears in Sculpt mode
The catalog path was updated in
blender/blender-assets@88f1a1caf7 but was
not updated here, resulting in a category that had no effect when
toggled and was not visible in the larger tree view.

Pull Request: https://projects.blender.org/blender/blender/pulls/129387
2024-10-24 23:17:23 +02:00
Campbell Barton
5a6ee9e636 Merge branch 'blender-v4.3-release' 2024-10-25 08:03:35 +11:00
Campbell Barton
70a7704641 Merge branch 'blender-v4.3-release' 2024-10-25 08:03:32 +11:00
Campbell Barton
4548c1455f Merge branch 'blender-v4.3-release' 2024-10-25 08:03:30 +11:00
Campbell Barton
1b320d5205 Merge branch 'blender-v4.3-release' 2024-10-25 08:03:11 +11:00
Sean Kim
158f12db4d Cleanup: Document Sculpt PBVH debug_value usage
Pull Request: https://projects.blender.org/blender/blender/pulls/129360
2024-10-24 21:12:50 +02:00
Michael Jones
0f6a83202d Revert unintended change to tests/data
Revert unintentional tests/data change that happened in 029cd1f739
2024-10-24 11:12:25 +01:00
Anthony Roberts
73974f7beb GPU Subdivision: Disable on Qualcomm GPUs on Windows
This resolves #124515 - albeit a little heavy handedly, as it disables 8cx Gen3 devices which work fine, but for the sake of code cleanliness, this should be okay.

Pull Request: https://projects.blender.org/blender/blender/pulls/129355
2024-10-24 11:55:48 +02:00
Campbell Barton
e3e6dd8fdb Fix #125958: Disable/uninstall an add-on can keep its dependencies
Python wheels from extensions were not being removed after
install/uninstall in some cases - although installing an extension
afterwards that used wheels would recalculate deps & remove them.

- Installing an extension didn't include the extension in the
  compatibility-cache, causing uninstalling not to remove deps.
- Uninstalling an extension wasn't re-calculating the deps,
  leaving them as-is.

Always write the compatibility-cache after installing and uninstalling
so changes are detected & handled.
2024-10-24 20:53:07 +11:00
Michael Jones
029cd1f739 Cycles: Remove invalid use of MetalRT accept_any_intersection in scene_intersect_local
This PR fixes a latent issue arising from invalid use of `accept_any_intersection(true)` when performing SSS ray-stepping with MetalRT. The comment incorrectly states that "we can optimize and accept the first hit", but to guarantee correct behaviour in future we need to request the closest hit.
2024-10-24 10:42:59 +01:00