Commit Graph

155153 Commits

Author SHA1 Message Date
Sean Kim
59746fde64 Merge branch 'blender-v5.0-release' 2025-10-15 19:32:24 -07:00
Sean Kim
e059c75ef5 Tests: Add delay for UI multi window tests on Windows
Similar to #146143, the `view3d_edit_mode_multi_window` currently fails
on the Windows build bot. This commit extends the platforms that
require an extra delay to avoid failures.

Pull Request: https://projects.blender.org/blender/blender/pulls/148078
2025-10-16 04:30:56 +02:00
Campbell Barton
3099cd2124 Fix #148142: Cannot interact with normal windows (GNOME 48.4)
Resolve regression with GNOME-48 & LIBDECOR caused by fix for GNOME-49
(see !148104).

New normal (non-maximized) windows were not refreshing and ignored
cursor input. Workaround the issue be resetting the title.

See code-comments for details.

Ref !148178
2025-10-16 02:28:38 +00:00
John Kiril Swenson
8baf294b0d Merge branch 'blender-v5.0-release' 2025-10-15 18:58:21 -05:00
John Kiril Swenson
a8e64f9a22 Fix: VSE: Crash from prefetch scene strip infinite recursion
PRs #147511 and #147595 ensured that any check for scene strip renders
in the prefetch thread would also recurse into "sequencer-type" scene
strips, but this introduced the potential for an infinite recursion.
Fix by using `SeqRenderState` to detect such a recursion.

Also remove unused `seqbasep` context member in `PrefetchJob`, and
add a check for non-nullptr `Editing`, fixing a crash where the scene was
present without an `Editing` counterpart.

Pull Request: https://projects.blender.org/blender/blender/pulls/147949
2025-10-16 01:55:08 +02:00
John Kiril Swenson
60d0cfdfe4 Fix #147701: VSE: Can't select markers when scene and sequencer scene differ
Add a simple check to the Marker keymap poll. Since there's no `bContext`
passed to the function we can reconstruct it from the workspace.

We can exit early if there is no sequencer scene (when no markers are
guaranteed). View layer can remain the same since it only applies in the
`SPACE_ACTION` case.

Pull Request: https://projects.blender.org/blender/blender/pulls/147903
2025-10-16 01:51:01 +02:00
Sean Kim
ff44764fff Cleanup: Add comments for Brush.curve_preset and corresponding enum
Pull Request: https://projects.blender.org/blender/blender/pulls/146200
2025-10-16 00:33:12 +02:00
Richard Antalik
eae3eabf53 Merge branch 'blender-v5.0-release' 2025-10-15 21:47:07 +02:00
Richard Antalik
8a0622ac68 Fix #148121: Thumbnails are refreshed when adding keyframes to strip
When strip property was animated, all caches were wiped. However, it is
not necessary to wipe raw cache or thumbnail cache.

Pull Request: https://projects.blender.org/blender/blender/pulls/148162
2025-10-15 21:46:30 +02:00
Richard Antalik
078bc6a7c2 VSE: Allow all strips to be used as modifier masks
It was requested to allow strips inside of meta strips to be used as
masks for modifiers. There is need for mask is to be shared between
multiple strips in multiple meta strips. More discussion is in #146970.

Pull Request: https://projects.blender.org/blender/blender/pulls/148097
2025-10-15 20:08:28 +02:00
Jonas Holzman
3926e01c4a Merge branch 'blender-v5.0-release' 2025-10-15 19:13:10 +02:00
Jonas Holzman
9329c48f30 Deps: macOS arm64: OSL dependency rebuild
Ref blender/blender#147620
Ref blender/blender#147727

Pull Request: https://projects.blender.org/blender/blender/pulls/148153
2025-10-15 19:11:31 +02:00
Jonas Holzman
a0de2e2f5d Deps: macOS arm64: OSL dependency rebuild
Ref blender/blender#147620
Ref blender/blender#147727

Pull Request: https://projects.blender.org/blender/blender/pulls/148153
2025-10-15 19:09:06 +02:00
Anthony Roberts
a2093aa80a Merge branch 'blender-v5.0-release' 2025-10-15 17:40:01 +01:00
Anthony Roberts
8a35d4e2bf Windows ARM64: 5.0 OSL threading update
As per #147727

Pull Request: https://projects.blender.org/blender/blender/pulls/148151
2025-10-15 18:37:33 +02:00
Ray Molenkamp
c00f04f3d6 Merge remote-tracking branch 'origin/blender-v5.0-release' 2025-10-15 10:09:17 -06:00
Ray Molenkamp
b215764842 Win64: Updated OSL Libs
This fixes #147361 and #147642
2025-10-15 10:07:45 -06:00
Sergey Sharybin
5ee406a743 Merge branch 'blender-v5.0-release' 2025-10-15 17:13:54 +02:00
Sergey Sharybin
969214cba8 Tests: Blocklist known failures for Cycles render tests
This change marks hair_linear_close_up.blend is blocked for Metal-RT.
Linear curves parameterization is different, see #146072

Pull Request: https://projects.blender.org/blender/blender/pulls/148119
2025-10-15 17:13:16 +02:00
Hans Goudey
6e66b8a242 Merge branch 'blender-v5.0-release' 2025-10-15 10:58:14 -04:00
YimingWu
db96265568 Fix #148061: Prevent unknown socket type from crashing when reading file
`socket.socket_typeinfo()` can be nullptr when reading blend files that
contains custom socket types that are not registered yet. This fix
prevents crashing when this happenes (but the socket will stay
unregistered).

Pull Request: https://projects.blender.org/blender/blender/pulls/148103
2025-10-15 16:54:08 +02:00
Bastien Montagne
39cbeee0ce Merge branch 'blender-v5.0-release' 2025-10-15 16:36:55 +02:00
Sergey Sharybin
a3681c98ef Build: Linux libraries for OSL
Ref #147620
Ref #147727

Pull Request: https://projects.blender.org/blender/blender/pulls/147812
2025-10-15 16:29:48 +02:00
Damien Picard
cf7713aac6 I18n: Disambiguate "Second", the unit, not the ordinal
Reported by Alexandr Fatih in #43295.

Pull Request: https://projects.blender.org/blender/blender/pulls/148085
2025-10-15 16:26:48 +02:00
Damien Picard
90e2dfd2e3 I18n: Translate dynamic operator descriptions
The descriptions for `POSELIB_OT_asset_modify` and
`GEOMETRY_OT_execute_node_group` are dynamic. They were already
extracted, but the translation did not happen in the description
function.

This commit adds the appropriate `TIP_` translation macro.

Reported by Ye Gui in #43295.
2025-10-15 16:26:46 +02:00
Damien Picard
c36c103389 I18n: Translate "Unassigned Node Tools" tool node menu
The "Unassigned Node Tools" menu type is declared manually in a
function, and its label is not automatically translated. This commit
extracts it using `N_()`. Note that its description was already
extracted the same way.

Reported by Ye Gui in #43295.
2025-10-15 16:26:46 +02:00
Damien Picard
5e6ea2fa78 I18n: Disambiguate "Value" in the context of colors 2025-10-15 16:26:46 +02:00
Damien Picard
51a0d1bf1c I18n: Translate curve falloffs using existing context
In particular, "Inverse Square" is only extracted in the Curve
translation context.

Reported by Ye Gui in #43295.
2025-10-15 16:26:46 +02:00
Damien Picard
197d69627d I18n: Fix translation of formatted string in report 2025-10-15 16:26:46 +02:00
Damien Picard
9ff1b4f1ec I18n: Translate error messages in VR add-on 2025-10-15 16:26:46 +02:00
Damien Picard
d1fdc7a0ce I18n: Do not translate Python template menu entries 2025-10-15 16:26:46 +02:00
Julian Eisel
c69088b36a Merge branch 'blender-v5.0-release' 2025-10-15 16:22:16 +02:00
Julian Eisel
ba71402e24 Fix: Undefined behavior when using UI list or tree-view scrollbar
A scrollbar button would be cast to a number-slider button, and values from
this memory used for scrollbar specific calculations. Looks like an error from
809499a3d0.

In practice the error wouldn't be visible, since the actually used value would
by chance be the intended value, from what I can tell. That's because
`uiButNumberSlider.step_size` and `uiButScrollBar.visual_height` have the same
memory offset within the button memory.
2025-10-15 16:21:58 +02:00
Julian Eisel
f86c042724 Fix: Undefined behavior when using UI list or tree-view scrollbar
A scrollbar button would be cast to a number-slider button, and values from
this memory used for scrollbar specific calculations. Looks like an error from
809499a3d0.

In practice the error wouldn't be visible, since the actually used value would
by chance be the intended value, from what I can tell. That's because
`uiButNumberSlider.step_size` and `uiButScrollBar.visual_height` have the same
memory offset within the button memory.
2025-10-15 16:20:39 +02:00
Sergey Sharybin
6bc3aafd81 Merge branch 'blender-v5.0-release' 2025-10-15 16:19:19 +02:00
Patrick Mours
d9cce547e6 Fix: OSL shadeops module fails to load in OptiX
The OSL dependency is built with target sm_50 currently, which means
that LLVM defaults to generating PTX version 4.0. However, due to an
apparent bug in LLVM 20 it still uses instructions that were only
introduced in PTX version 6.0. As a result OptiX refuses to load the
shadeops PTX with an `OPTIX_ERROR_INVALID_INPUT` error.

To fix this, raise the PTX version generated by LLVM to 6.0 for both the
shadeops module (which previously used 4.0) and also any generated code
(which previously used 5.0) to be safe. PTX version 6.0 was introduced with
CUDA 9, so it has pretty long driver backwards compatibility still.

This commit contains fixes for the OSL, to fully fix the original report
a recompiled OSL libraries would need to land for the affected platforms.

Ref #147361

Pull Request: https://projects.blender.org/blender/blender/pulls/147620
2025-10-15 16:18:46 +02:00
Sergey Sharybin
0b6c820aae Merge branch 'blender-v5.0-release' 2025-10-15 16:14:19 +02:00
Sergey Sharybin
1621950441 Build: Fix threading issue in OSL
This change ports the PR from upstream to the build system:
https://github.com/AcademySoftwareFoundation/OpenShadingLanguage/pull/2029

Ref #147642

Pull Request: https://projects.blender.org/blender/blender/pulls/147727
2025-10-15 16:07:45 +02:00
Omar Emara
3aa674966f Nodes: Support disabling outputs in built-in nodes
This patch adds support for disabling outputs in built-in nodes based on
menu inputs using a custom usage_inference callback. This just
essentially calls usage_inference_fn for outputs as well, while it was
only being called for inputs. Additionally, the usage_by_menu methods
were adjusted to only consider outputs if it is being called on inputs.

Some types were renamed to be more general, and not just for inputs.

Pull Request: https://projects.blender.org/blender/blender/pulls/148132
2025-10-15 15:57:56 +02:00
илья _
7b3737f1e9 Fix: Mesh: Wrong corner edge indices in result of edge generation
Instead of reordering edges to be able to map them with hash sets, new
edges order (since 157e7e0351) is kept as-is in order to not
touch edge attributes. In early return in case of correct mesh this new
ordering was missed. This was found in file from #147694.

Pull Request: https://projects.blender.org/blender/blender/pulls/147872
2025-10-15 15:39:11 +02:00
Bastien Montagne
df4c7a6da2 Merge branch 'blender-v5.0-release' 2025-10-15 15:20:17 +02:00
Bastien Montagne
40e61d4240 Fix #147978: Missed conversion to SystemProperties for children bones.
Forgot that the Armature's bones list only contain root bones...

Fix the versioning code.

Also adding a 'recovery' extra versioning step for files that may have
already been opened and re-saved in Blender 5.0 (though this step is
not 100% handling all cases, in case some script or add-on already
created some system properties in a bone in 5.0, the existing user
properties from 4.5 and before won't be copied over anymore).

Pull Request: https://projects.blender.org/blender/blender/pulls/148125
2025-10-15 15:09:30 +02:00
Sybren A. Stüvel
bbf40d214c Fix #147729: Crash scrubbing w/ snapping to sec and FPS < 0.5
Fix playhead snapping to seconds, when the frame rate is less than 0.5
FPS.

This makes it possible to snap to fractions of frames, to support setups
with multiple seconds per frame. Of course this only has any effect
(apart from not crashing) when sub-frames are enabled.

I've also added unit tests, and verified that the values are the same
from before this refactor.

Pull Request: https://projects.blender.org/blender/blender/pulls/148074
2025-10-15 12:54:36 +02:00
Omar Emara
722310342f Compositor: Support Radial Tilling node
This patch adds support for the Radial Tilling node in the compositor.
The node already existed in the compositor, but it immediately crashed
Blender, so we dropped support for it in 5841cb21f7 until proper support
is added.

Support was added in 5517941a60, 97e3fb0e03, a2146839d7, and df8683ec2a.
So we now enable it again by reverting 5841cb21f7.

Pull Request: https://projects.blender.org/blender/blender/pulls/148056
2025-10-15 12:01:20 +02:00
Bastien Montagne
c561850897 Merge branch 'blender-v5.0-release' 2025-10-15 11:44:29 +02:00
Bastien Montagne
3f7db9c4b7 Fix #147759: Do not delete a library if it contains the active scene.
Supporting this is fairly involved (see #147759 comments and !147827),
so for 5.0 and active LTSs releases, best is to not delete a library if
it contains the active scene.

Pull Request: https://projects.blender.org/blender/blender/pulls/147831
2025-10-15 11:40:29 +02:00
Weizhen Huang
82892b6f08 Merge branch 'blender-v5.0-release' 2025-10-15 11:24:11 +02:00
weizhen
6c241737e8 Fix: Cycles volume performance issue on Nvidia
Pass by value instead of reference partially fixes the performance issue
mentioned in #147921

Pull Request: https://projects.blender.org/blender/blender/pulls/147989
2025-10-15 11:23:52 +02:00
Bastien Montagne
408a0b58d4 Fix #147317 Crash on undo/redo with PackedData.
The issue here was that when an archive library ID is read from
blendfile (memfile undo buffer in that case), a new split main is
immediately created for it in `direct_link_library`, and the newly
read Library is assigned to its `Main::curlib` pointer.

However, in undo readfile code, when an old matching ID is found, the
new data is moved into that old address, to avoid modifying all other
unchanged ID using that re-read data-block.

For (archive) libraries, it means that their split main `curlib` pointer
also needs to be re-assigned to the re-used old address.

Pull Request: https://projects.blender.org/blender/blender/pulls/147744
2025-10-15 11:09:01 +02:00
Pratik Borhade
8712909ae1 Merge branch 'blender-v5.0-release' 2025-10-15 14:37:28 +05:30