124020 Commits

Author SHA1 Message Date
tariqsulley
f8a592a7f0 Fix #147905: No radius indicator for proportional UV editing
Resolve regression in [0] which hid transform overlay in the image view.

The indicator now displays when overlays are enabled in the UV editor.

[0]: 1df4a09539
2025-10-12 20:03:24 +11:00
Campbell Barton
b8809f3b89 Merge branch 'blender-v5.0-release' 2025-10-12 19:44:01 +11:00
Campbell Barton
87937059b1 Fix #147639: Crash When Clicking On Extrude Region in Edit Mode
Account for change in !141303 which increased the size by 1 returned
by RNA_property_string_length, which now includes the nil byte.
2025-10-12 08:43:04 +00:00
Campbell Barton
5ddb195017 Merge branch 'blender-v5.0-release' 2025-10-12 16:59:23 +11:00
Germano Cavalcante
b42e4052b7 Fix #121378: Can't snap parent to children with Affect Only Parent activated
The flag that skips objects for snapping (`BA_SNAP_FIX_DEPS_FIASCO`) is
set for all objects that have a `DEG_OB_COMP_TRANSFORM` relation.

However, when the **Affect Only Parent** option is enabled, children
are not transformed and therefore could still be snapped to.
Despite this, the `DEG_OB_COMP_TRANSFORM` dependency remains present on
them.

To address this, a new callback was introduced that skips
Transform-to-Transform dependencies while preserving
Transform-to-Geometry dependencies in this scenario.

This approach may introduce some false positives, leading to spurious
dependency cycles (e.g., when constraints are involved).
Nevertheless, the trade-off favors accepting these false positives
rather than disabling the feature altogether.

Also make non-functional change that just removes a flag before the snap
loop, thus avoiding checking if the flag exists inside the loop.

Ref !142007
2025-10-12 16:49:58 +11:00
Campbell Barton
ffa750fd5e Cleanup: use doxygen style doc-strings for IMB 2025-10-12 01:12:52 +00:00
Campbell Barton
523322f241 Cleanup: remove unused Python operator defines 2025-10-12 01:12:49 +00:00
Campbell Barton
729251ebac Cleanup: pass const arguments 2025-10-12 01:12:47 +00:00
Campbell Barton
c4b2c1c19e Cleanup: spelling (check_spelling_*), trailing spaces in comments 2025-10-12 12:12:46 +11:00
Howard Trickey
ebd2909123 Merge branch 'blender-v5.0-release' 2025-10-11 20:14:26 -04:00
Howard Trickey
d58afb615c Fix #147718: Bevel accuracy at small scale.
There was a bug in the move_weld_profile_planes function where
it would only move the profile plane involved in a "weld" if
certain vectors were not too small (less than BEVEL_EPSILON in
length). The intent of the code was just to avoid problems with
zero length normals (post normalization), and the normalize_v3
function indicates that with an exact 0.0f return, so there was
no need for an epsilon test.
The example file in the issue had a small-scale model (100 times
smaller than typical), which ended up causing the old code to
prevent moving the profile plane to where it belongs.

Pull Request: https://projects.blender.org/blender/blender/pulls/147898
2025-10-12 02:03:46 +02:00
Casey Bianco-Davis
9496d941fd Grease Pencil: Add Sample Color operator to Vertex Color Mode
This PR adds the `sample_color` operator to Grease Pencil Vertex Paint
Mode.

Pull Request: https://projects.blender.org/blender/blender/pulls/146951
2025-10-12 01:45:13 +02:00
Harley Acheson
152405489d Merge branch 'blender-v5.0-release' 2025-10-11 11:10:41 -07:00
Harley Acheson
2d9a883822 Fix #147487: Disable Area Maintenance Animations
Disabling (at least temporarily) the fading animations shown during and
after some area maintenance routines (like splitting, joining, closing)
as this causes memory leaks during automated testing. This doesn't
occur during regular usage, just when the window is closed within the
animation time. We'll look for an improved solution in the future.

Pull Request: https://projects.blender.org/blender/blender/pulls/147890
2025-10-11 20:09:08 +02:00
Nick Alberelli
877283a09a PyAPI: bpy.ops callable type in the C-API
Moving `__call__` logic into Python's C-API means error messages
caused by operators reference the code of the caller instead of the
call from `.scripts/modules/bpy/ops.py`.

When a full call stack is available this isn't so important,
however when logging callers it's not useful to log the call
from `ops.py`.

There minor performance advantages for moving from Python to C++
however this wasn't a significant consideration for the change.

Note that this is a fairly direct conversion from Python to C++,
there is room for refactoring to simplify the calling logic.

See #144746 for the motivation & #147448 for further improvements.

Ref !145344
2025-10-11 03:04:57 +00:00
Harley Acheson
78029fa777 Merge branch 'blender-v5.0-release' 2025-10-10 11:06:36 -07:00
Harley Acheson
64b4db4a12 Fix #147765: Padding of Quick Tooltips
Some tooltips pop up up instantly with just a word or two and then
expand later to show more information, for example for the Properties
categories. This type of tooltip is not considering padding when
clamping to the window bounds, making it possible for them to be
positioned in such a way that clips some content. This PR just adds
padding to the window bounds.

Pull Request: https://projects.blender.org/blender/blender/pulls/147835
2025-10-10 20:04:27 +02:00
Hans Goudey
53cdcf3042 Cleanup: Formatting in attribute type conversion
Just making the sections easier to read.

Pull Request: https://projects.blender.org/blender/blender/pulls/147830
2025-10-10 19:40:26 +02:00
Christoph Neuhauser
abc2cb24c9 Fix: EEVEE: Write to vertex shader outputs to avoid Intel linking errors
eevee_geom_world_vert.glsl and eevee_geom_volume_vert.glsl do not
support shadows, but the shader validation pipeline still compiles the
shadow variant of these shaders. This results in the fragment shader
reading from inputs that are not written to as vertex shader outputs.
On the Intel Windows OpenGL driver, this leads to a shader linking
failure. This PR avoids the issue by writing zeros to the interface
variables when MAT_SHADOW is defined.

Pull Request: https://projects.blender.org/blender/blender/pulls/147821
2025-10-10 19:11:46 +02:00
Hans Goudey
410f57da5d Cleanup: Improve documentation in AttrType / eCustomDataType conversion
This list can be used as a source of truth for what needs to be
supported in CustomData vs. AttributeStorage for some ongoing work.
These comments just make it a bit more useful.
2025-10-10 12:46:32 -04:00
Nick Alberelli
4f8e4044ae API Documentation: Add note to gpu.shader to explicitly set all uniforms
Fix #103176

Pull Request: https://projects.blender.org/blender/blender/pulls/146860
2025-10-10 18:38:24 +02:00
Harley Acheson
641a14d312 Merge branch 'blender-v5.0-release' 2025-10-10 09:20:36 -07:00
Harley Acheson
0262b939a0 Fix #147804: Alignment of Playhead parts
With changes to the playhead to correctly draw when separated from the
vertical line (for time stretching) some parts are slightly misaligned.
This PR corrects the vertical alignment of the top of the triangular
part to the number box. It also corrects horizontal alignment of the
vertical line to be pixel-aligned based on the interior, not the shadow
exterior.

Pull Request: https://projects.blender.org/blender/blender/pulls/147825
2025-10-10 18:18:58 +02:00
Christoph Neuhauser
7b5dfdf759 Revert "Fix: EEVEE: Write to vertex shader outputs to avoid Intel linking errors"
This reverts commit 16ad7524a7.
The commit was accidentally pushed to the upstream branch instead of a
fork branch.
2025-10-10 17:23:05 +02:00
Omar Emara
42263644c1 Fix #147377: Glare Kernel is dependent on quality
The Kernel mode of the Glare node is dependent on the quality input of
the node. This patch makes it such that it is independent. This is down
by downsampling the kernel with the same amount the image was
downsampled.

Pull Request: https://projects.blender.org/blender/blender/pulls/147811
2025-10-10 16:52:15 +02:00
Christoph Neuhauser
16ad7524a7 Fix: EEVEE: Write to vertex shader outputs to avoid Intel linking errors
eevee_geom_world_vert.glsl and eevee_geom_volume_vert.glsl do not
support shadows, but the shader validation pipeline still compiles the
shadow variant of these shaders. This results in the fragment shader
reading from inputs that are not written to as vertex shader outputs.
On the Intel Windows OpenGL driver, this leads to a shader linking
failure. This PR avoids the issue by writing zeros to the interface
variables when MAT_SHADOW is defined.
2025-10-10 16:35:30 +02:00
Bastien Montagne
4cb1564507 Merge branch 'blender-v5.0-release' 2025-10-10 16:02:20 +02:00
Damien Picard
84fc90bb43 I18n: Extract many messages from ED_push_undo
This function is used to add undo steps. It includes a message, for
use in the Undo History menu. This label uses the "Operator" context
for translation.

This commit adds automatic extraction of two functions `ED_undo_push`
and `ED_undo_grouped_push`, as well as manual extraction for many
strings not declared in the function calls.

In order to extract those messages using the proper context, the
extraction logic had to be changed so that a custom context could be
specified. The regexes can now be either a pattern, or
a (ctxt_override, pattern) tuple.

Pull Request: https://projects.blender.org/blender/blender/pulls/147581
2025-10-10 16:01:35 +02:00
Lukas Tönne
2b01bbd73c Fix #147752: Button swap is missing custom tooltip callbacks
Tooltips could crash where callbacks receive the wrong argument.
This is because the swap function was missing the `custom_tip_func` callback,
but was swapping the callback argument.

Pull Request: https://projects.blender.org/blender/blender/pulls/147806
2025-10-10 15:37:55 +02:00
Lukas Tönne
577a66aea2 Fix #147752: Button swap is missing custom tooltip callbacks
Tooltips could crash where callbacks receive the wrong argument.
This is because the swap function was missing the `custom_tip_func` callback,
but was swapping the callback argument.

Pull Request: https://projects.blender.org/blender/blender/pulls/147806
2025-10-10 15:28:51 +02:00
Jeroen Bakker
264efc1446 Merge branch 'blender-v5.0-release' 2025-10-10 15:20:43 +02:00
Jeroen Bakker
93cdea62f6 Fix #146560: Vulkan: Improve multires out of memory issue
This seems like an out of memory issue where the storage
buffer could not be allocated but still used as a destination
for a copy. After an out of memory issue memory can be fragmented
and any allocation can still fail.

On `AMD Radeon(TM) 890M Graphics Advanced Micro Devices AMD`
`24.30.58` I got to multires subdivision level 2+6 using the steps
described in the report. 2+7 is failing for me. 2+6 already requires 16GB
of memory using large chunks.

OpenGL and Vulkan work with other limits and memory models and can
have different behavior. This PR only improves the mentioned issue, but
can still fail in other areas.

Pull Request: https://projects.blender.org/blender/blender/pulls/147713
2025-10-10 15:19:43 +02:00
Philipp Oeser
ed4f2b5dc3 bump subversion for compositor asset shelf fix
See 0a35af2fc0
2025-10-10 15:01:41 +02:00
Philipp Oeser
0a5301d305 Merge branch 'blender-v5.0-release' 2025-10-10 14:58:29 +02:00
Philipp Oeser
0a35af2fc0 Fix #147623: Compositor: Impossible to toggle Asset Shelf
In certain scenarios, the Node Editor lacks the `RGN_TYPE_ASSET_SHELF` &
`RGN_TYPE_ASSET_SHELF_HEADER` regions.

That is because the versioning code from 0a0dd4ca37 only creates these
for Node Editors that are Compositors.
That does not seem right. The thing is, if you change a non-node Editor
(e.g. an Image Editor) to a Compositor editor, all is fine (`SpaceLink
*node_create` gets called, the regions set up correctly), but changing
an **existing** node editor (e.g. Shader or Geometry Nodes) to a
Compositor, no new Space gets set up (rightfully so) and we are then
missing the regions.

I dont really see an issue with having the versioning setting up shelf
regions for **all** node editors (the shelf polls will already take care
of it only showing in the Compositor) which is what this PR does.

Now we are in the unfortunate situation that people might have saved
their `startup.blend` (or other files affected by that) in the meantime,
so versioning will not kick in anymore, so we probably have to do
another versionbump (which will happen in `main`).

Pull Request: https://projects.blender.org/blender/blender/pulls/147689
2025-10-10 14:58:02 +02:00
Omar Emara
f2f84ef60a Fix #136783: Scaling sometimes causes images to shift
Scaling images in the compositor sometimes causes images to shift, this
is because the realization domain was computed using the center of the
original image before scaling. To fix this, we make sure the
transformation is actually centered.

This is rarely apparent and thus no tests need to be updated and this
should not be backported for safety.

Pull Request: https://projects.blender.org/blender/blender/pulls/147805
2025-10-10 14:22:31 +02:00
Falk David
258fe41300 Merge branch 'blender-v5.0-release' 2025-10-10 14:16:13 +02:00
Falk David
15d3ef54ee Fix #147653: Deleting a scene while playing it back causes a crash
The `ScreenAnimData` which is saved to the animation timer on the
screen during playback stores a pointer to the scene that is playing.
When deleting a scene, the next time the timer is triggered this will
result in an invalid pointer de-reference.

This fixes the crash by stopping the playback when a scene is deleted.

Pull Request: https://projects.blender.org/blender/blender/pulls/147687
2025-10-10 14:15:45 +02:00
Omar Emara
52667261f8 Merge branch 'blender-v5.0-release' 2025-10-10 14:53:43 +03:00
Omar Emara
41dac157b6 Fix #147786: Crash when connecting menu to float input
Compositor crashes when connecting a menu output to a float input, this
is because no implicit conversion is supported between the two, and no
handling was done in this case. To fix this, we fallback to a default
value for unsupported implicit conversions.

Pull Request: https://projects.blender.org/blender/blender/pulls/147801
2025-10-10 13:52:15 +02:00
Patrick Mours
080855646b Merge branch 'blender-v5.0-release' 2025-10-10 13:15:51 +02:00
Clément Foucault
4c97ac9a27 Fix #147168: BLF: Glitchy status bar display
This seems to be a Mesa driver error.

Discarding the buffer before the area drawing fixes the
issue.

Given this is an expensive operation, we try to only do it
where it is needed.

Pull Request: https://projects.blender.org/blender/blender/pulls/147733
2025-10-10 12:58:30 +02:00
Bastien Montagne
3b86057be9 Document why resync failure is never expected in liboverride creation code. 2025-10-10 12:18:51 +02:00
Aras Pranckevicius
109d2df84d Merge branch 'blender-v5.0-release' 2025-10-10 13:05:54 +03:00
Sergey Sharybin
5f64692e0c Fix: Compilation error due to a typo in variable 2025-10-10 12:03:07 +02:00
Bastien Montagne
270c8c89ba Fix warning in release builds. 2025-10-10 11:53:22 +02:00
Damien Picard
f79165eb7c I18n: Manually extract many node socket menu items
Node menu sockets' items are not currently exposed to RNA, and need to
be extracted manually for now.

Pull Request: https://projects.blender.org/blender/blender/pulls/147579
2025-10-10 11:24:17 +02:00
Aras Pranckevicius
9cbbe1ef73 Fix #147776: VSE strip crop values not scaled to preview/proxy size
1fbd83f72e commit flipped the logic of true vs false, but did not flip
all the usages of it.

Pull Request: https://projects.blender.org/blender/blender/pulls/147792
2025-10-10 10:41:34 +02:00
Jeroen Bakker
47f80fed29 Merge branch 'blender-v5.0-release' 2025-10-10 10:35:00 +02:00
Jeroen Bakker
ac9de14f03 Fix: Vulkan: Incorrect color attachments
When using a framebuffer without any color attachments there was always
a single color attachment acounted for. This oversight was detected when
looking into #147299.

Pull Request: https://projects.blender.org/blender/blender/pulls/147791
2025-10-10 10:34:03 +02:00