Commit Graph

153636 Commits

Author SHA1 Message Date
Jeroen Bakker
84e2795ee2 Fix: Vulkan: Workbench rendertest were not reported
The Vulkan workbench rendertests were not included to the overall
report due to a typo.
2025-09-05 14:34:14 +02:00
Jeroen Bakker
7d3e4a25ac Fix: Vulkan: Unused attachments
Recent changed introduced a VVL error on devices that don't support
`VK_EXT_dynamic_rendering_unused_attachments`. These include
Qualcomm GPUs.

PR introduced regression: !145120

Pull Request: https://projects.blender.org/blender/blender/pulls/145793
2025-09-05 14:32:41 +02:00
Ramon Klauck
7755411c90 VSE: paste strips at mouse in preview
This PR makes it possible to paste strips directly at the mouse in the
VSE Preview, making it faster to paste strips directly at the position
the user wants the strip to be. It is still possible to paste the strip at the
original position with the `ctrl + shift + v` shortcut.

Pull Request: https://projects.blender.org/blender/blender/pulls/145008
2025-09-05 14:32:36 +02:00
W_Cloud
43fdf067ab Geometry Nodes: improve Viewer Attribute Text Readability
- Corner Domain Text Overlap: Text is now offset along the angle bisector of
  each corner. The offset distance is dynamically adjusted based on the view
  zoom and corner angle sharpness.
- Wrap Long Line: Split Vectors, Colors, and Quaternions into labeled line for
  each component.

Pull Request: https://projects.blender.org/blender/blender/pulls/145290
2025-09-05 13:46:03 +02:00
Jeroen Bakker
4f4104d047 EEVEE: Fix pointcloud rendering for Vulkan
When using Vulkan the point clouds were not drawn correctly
in EEVEE. The reason is that only the back faces were drawn.

Pull Request: https://projects.blender.org/blender/blender/pulls/145787
2025-09-05 13:29:15 +02:00
Brecht Van Lommel
da9dfca95d Cleanup: Remove outdated clog comments in the header
Pull Request: https://projects.blender.org/blender/blender/pulls/145784
2025-09-05 13:11:04 +02:00
Jacques Lucke
40488038cf Geometry Nodes: optimize group input logging
Previously, group input values were logged for each group input socket. This
means that each value might be logged many times currently when there are many
Group Input nodes.

This patch changes it so that group input values are only logged for a single
socket.  In the provided file from #145385 this speeds up playback performance
from 23 to 39 fps. The next bottleneck there is node editor drawing. If I change
the Geometry Nodes editor to another editor type the speedup is 36 (`main`) to
110 fps (this patch).

Pull Request: https://projects.blender.org/blender/blender/pulls/145781
2025-09-05 13:00:24 +02:00
Brecht Van Lommel
9856615813 Color Management: Change byte color attributes to always be sRGB
These don't really work as scene linear with sRGB transfer function for e.g.
ACEScg, there are not enough bits. If you want wide gamut you need to use
float colors.

Pull Request: https://projects.blender.org/blender/blender/pulls/145763
2025-09-05 11:11:33 +02:00
Brecht Van Lommel
ffa4f8c7ad Refactor: Split off lighter BLI_color_types.hh from BLI_color.hh
Functions for convert between the color types and ostream support are
now outside the classes.

Many files were changed to fix cases where direct includes for headers
were missing.

Pull Request: https://projects.blender.org/blender/blender/pulls/145756
2025-09-05 11:11:32 +02:00
Brecht Van Lommel
9d2058eb1e Color Management: Warn when OpenColorIO config for blend file is likely missing
If any display, view or colorspace is not found, these would be changed to an
existing one and show warnings in the console. Now also warn about this in the
user interface using the same mechanism as loading new blend files in older Blender
versions, with a warning in the status bar and on file save.

Ref #145476

Pull Request: https://projects.blender.org/blender/blender/pulls/145756
2025-09-05 11:11:32 +02:00
Brecht Van Lommel
7d829e58d3 Refactor: Move linear color space matrices from imbuf to blenlib
We want to be able to use them in BLI_color.hh.

Pull Request: https://projects.blender.org/blender/blender/pulls/145755
2025-09-05 11:11:32 +02:00
Brecht Van Lommel
ea0fab21d4 Color Management: Builtin support for ACEScg and Rec.2020 linear spaces
With new functions to convert to/from scene linear in the Python API. ACEScg
in particular is common in USD and MaterialX files.

Pull Request: https://projects.blender.org/blender/blender/pulls/145755
2025-09-05 11:11:32 +02:00
Brecht Van Lommel
efc8970015 Fix: Cycles: Invalidate caches when scene linear colorspace changes
Don't assume the configuration remains the same.

Pull Request: https://projects.blender.org/blender/blender/pulls/145755
2025-09-05 11:11:32 +02:00
Brecht Van Lommel
19e845b91e Fix: Cycles blackbody renders wrong with OSL and ACEScg
OSL only supports a fixed number of color space, so detect a few common
ones and set those. This makes functions like blackbody work correctly.

Pull Request: https://projects.blender.org/blender/blender/pulls/145755
2025-09-05 11:11:32 +02:00
Brecht Van Lommel
76a446deba Fix: Wrong color space for gizmo, fluid grid line and stamp colors
Mark these as sRGB, as they already were or should be interpreted this way.

Pull Request: https://projects.blender.org/blender/blender/pulls/145755
2025-09-05 11:11:32 +02:00
Brecht Van Lommel
c984f6b67a Fix: Python error creating new reference renders for tests
Pull Request: https://projects.blender.org/blender/blender/pulls/145755
2025-09-05 11:11:32 +02:00
Jeroen Bakker
1c360091aa Fix: Vulkan: Validation error on Qualcomm GPU
Qualcomm GPU doesn't support image load/store on framebuffers. We use
load store to convert to the correct color space. This PR will only
set the VK_IMAGE_USAGE_STORAGE_BIT when HDR is available. As Qualcomm
doesn't support HDR using Vulkan this is safe.

Pull Request: https://projects.blender.org/blender/blender/pulls/145775
2025-09-05 11:09:17 +02:00
Jeroen Bakker
f4cd45d71e Cleanup: Pass variable by ref 2025-09-05 09:19:16 +02:00
Jeroen Bakker
aa7664eacc Fix: Incorrect test for WITH_GHOST_X11 2025-09-05 09:17:58 +02:00
David-Sebald
ad83a1017f Geometry Nodes: new String to Value node
An existing node converts a value (float) to string. This node is intended as a conversion in
the other direction. If parsing is unsuccessful, floating point 0 is output. This node also
outputs the length of the parsed string (i.e. the index of the first character where the
number stopped).

Pull Request: https://projects.blender.org/blender/blender/pulls/112174
2025-09-05 08:51:38 +02:00
Eitan Traurig
b8051d12ac Fix #141293: Lock Pinned Islands in UV packing not working with UDIMs
Ref !141311
2025-09-05 14:00:12 +10:00
luz paz
fe16660eaa Fix: typos in source/blender/makesrna
Fixes various user-facing and non-user-facing typos found
using `codespell` (see PR for details).

Ref !145754
2025-09-05 10:24:09 +10:00
Harley Acheson
91997ea89f UI: Save Temp Window Sizes & Positions
Allow temporary windows (like File Browser, Preferences, Render,
Drivers, Info) to open at their last positions and sizes.

Pull Request: https://projects.blender.org/blender/blender/pulls/104727
2025-09-05 00:05:50 +02:00
Mattias Fredriksson
ccd8926717 Curves: Simplify calculation of NURBS basis functions
Replaces current basis function calculation which seems to be a direct
implementation of the recursive NURBS formulation. New implementation
avoids the need to check for zero divisions during iteration. Out of
bounds checks are also converted to asserts, assuming input provides
valid span index.

Performance wise this nets a 7+% performance improvement with the
average result being as fast or faster then the fastest execution
from previous implementation!

Pull Request: https://projects.blender.org/blender/blender/pulls/144457
2025-09-04 21:49:58 +02:00
Jonas Holzman
fff3af04c4 UI: Nodes: Rename Shader / Compositing RGB nodes to Color
This PR renames the Shader and Compositing RGB nodes to unify them with
the Geometry Color input node. The Compositing node output socket was
also renamed from "RGBA" to "Color" following other nodes. This is a
5.0 breaking change as part of #96219

Pull Request: https://projects.blender.org/blender/blender/pulls/140495
2025-09-04 21:42:53 +02:00
илья _
7915ce5b1c Cleanup: Redundant template parameterization
Pull Request: https://projects.blender.org/blender/blender/pulls/145052
2025-09-04 21:32:24 +02:00
Eitan Traurig
6564f33eb3 Core: Add hashing support to Array data structure
Implements hashing with the same implementation as the `Vector` data
structure. Hashing requested in PR review of #145531.

Pull Request: https://projects.blender.org/blender/blender/pulls/145689
2025-09-04 20:44:01 +02:00
Harley Acheson
923b5f88ba UI: Status Bar Improvements for Sculpt Expand Operator
Changes to the status bar display when using the Sculpt Expand
operator, which currently takes up too much horizontal space. This
mostly removes "toggle", combines some increase/decrease keys, etc.

Pull Request: https://projects.blender.org/blender/blender/pulls/145009
2025-09-04 20:34:54 +02:00
Sean Kim
6e75d59c7f Fix #145733: Multires undo doesn't work
Introduced with 8536fd1223

Pull Request: https://projects.blender.org/blender/blender/pulls/145744
2025-09-04 20:20:50 +02:00
Harley Acheson
83e59eea9c UI: Touch-Capable Area Maintenance
This PR allows area maintenance that is compatible with touch
interfaces. The top-left action zone is widened to minimum hitspace,
shown as a "gripper" icon. A simple press brings up a menu with area
maintenance options, including split, docking, tear off, maximize, and
Close.

Pull Request: https://projects.blender.org/blender/blender/pulls/144591
2025-09-04 18:12:26 +02:00
Habib Gahbiche
f518f2ea67 Python: Nodes: deactivate_viewer() affects active viewer only
It is assumed that within a node tree at most one viewer is active at a
time, see also `node_tree_set_output()`. So we ignore selection when
deactivating a viewer and rely on the active node from context instead
to decide which viewer node should be deactivated.

Motivation: #145506  and #145509
Pull Request: https://projects.blender.org/blender/blender/pulls/145505
2025-09-04 17:55:53 +02:00
Falk David
8571dfa881 Cleanup: VSE: Add read/write callbacks to strip modifiers
This replaces the hardcoded function with modifier type callbacks
to make it easier to customize the reading/writing
for custom modifier data.
No functional changes.

Pull Request: https://projects.blender.org/blender/blender/pulls/145737
2025-09-04 17:27:42 +02:00
Harley Acheson
048447dcc2 UI: Dyntopo Confirmation Improvements
Enabling Dynamic Topology can result in a warning message when there
are existing attributes or modifiers. Unfortunately this warning looks
like an alert (single OK button) but is actually a confirmation. That
it operates when you click the single button is not clear. Nor is it
clear how to cancel. This PR replaces this with the current style of
confirmation, with clear execution and cancel buttons.

Pull Request: https://projects.blender.org/blender/blender/pulls/145534
2025-09-04 17:15:34 +02:00
Ido-Shahar
1df4aa4e11 Nodes: Node Wrangler: Support for string sockets in merge operator
Added support for string sockets in `nw_merge_nodes`, results in
creating "Join Strings" node. Note that the code is slightly different
from most socket types since String Join has a multi-input socket,
but the behaviour is pretty much identical to Geometry sockets with
Join Geometry.

Pull Request: https://projects.blender.org/blender/blender/pulls/145507
2025-09-04 17:01:20 +02:00
Patrick Mours
b4bb075285 Cycles: Flip image vertically before passing to OptiX denoiser to improve result quality
Experiments have shown that the OptiX denoiser performs best when
operating on images that have their origin at the top-left corner,
while Blender renders with the origin at the bottom-left corner.
Simply flipping the image vertically before and after denoising is a
relatively trivial operation, so this patch introduces this as an
additional preprocessing and postprocessing step for denoising when the
OptiX denoiser is used. Additionally, this patch also removes an unused
helper function, now that OptiX 8.0 is the minimum.

Pull Request: https://projects.blender.org/blender/blender/pulls/145358
2025-09-04 16:04:23 +02:00
Campbell Barton
7250eef0a3 Cleanup: pass const context to CTX_py_init_get 2025-09-04 23:05:17 +10:00
Falk David
866fcd0a09 VSE: Update Strip Modifier UI
This PR updates the VSE strip modifiers interface.
It now uses the same design as the object modifiers.

Changes:

* Except for the "Mask Input" subpanel, the modifier UIs are unchanged.
* Modifiers can now be rearranged using drag & drop.
* Additionally, there is now an active strip modifier. This is exposed
   though python via `strip.modifiers.active`.

This is in part for !139634 which needs the concept of an active modifier.

Notes:

* The `modifier.cc` file included all the implementation of all modifiers.
   With the addition of a another new callback in this PR, this file was
   getting quite big so I split everything out into individual files for all
  modifiers. The modifiers are getting registered at launch.
* The modifier panels are getting added using a UI template
  (`template_strip_modifiers`) very similar to the object modifiers.

Pull Request: https://projects.blender.org/blender/blender/pulls/145367
2025-09-04 15:01:57 +02:00
Philipp Oeser
7f94b86038 Fix #145190: Armature Symmetrize not symmetrizing Viewport Display
If the mirror bone was already existing, it was not copying over
`Display As` (which was reported) but also `Bone Color` was not
transferred.

Since the second does not suit _all_ workflows, this was made
optional (defaulting to OFF).

Pull Request: https://projects.blender.org/blender/blender/pulls/145221
2025-09-04 14:54:39 +02:00
Aras Pranckevicius
c249a11922 Cleanup: update ufbx to latest version
No behavior changes, only a tiny warning fix for some gcc versions.
And it is nicer to be on latest tagged release instead of
in-development state.

Pull Request: https://projects.blender.org/blender/blender/pulls/145727
2025-09-04 14:40:13 +02:00
Jeroen Bakker
a3621841e0 Refactor: GHOST_ContextVK
Improving readability of GHOST_ContextVK

- Introduces GHOST_Extensions for a common interface to device/instance
  extensions
- Introduces GHOST_InstanceVK for instance based API (used to be part of
  GHOST_DeviceVK)

During the refactor found out that the generic queue family would always
be 0, this is most of the time the case, but could lead to issues when
setting up more complex setups.

Pull Request: https://projects.blender.org/blender/blender/pulls/145721
2025-09-04 14:12:55 +02:00
Hans Goudey
5418f0bc68 Fix: Geometry nodes reorders attributes in some cases
Currently attribute names are often added to a hash map that doesn't
maintain the original order. This is convenient for developers but it's
better for users if attributes aren't arbitrarily reordered. Instead,
use `VectorSet` which gives the benefit of a hash map but maintains the
insertion order. The main downside is the loss of O(1) removal which we
benefited from in a few cases. I used string comparison instead for now.

Fixes #144491, #122994

Pull Request: https://projects.blender.org/blender/blender/pulls/145668
2025-09-04 13:59:44 +02:00
илья _
aee7943c06 Fix #145691: Geometry Nodes: anonymous attributes not always propagated in Set Mesh Normal node
Pull Request: https://projects.blender.org/blender/blender/pulls/145693
2025-09-04 13:31:50 +02:00
илья _
8dd2c458cc Fix: Geometry Nodes: anoymous attributes are not always propagated in Trim Curve node
Pull Request: https://projects.blender.org/blender/blender/pulls/145694
2025-09-04 13:28:53 +02:00
Sean Kim
cc5d111078 Cleanup: Remove legacy Grease Pencil python code
A number of panels referred to the `.greasepencil_paint` and
`.greasepencil_sculpt` context members, each of which only correspond to
the legacy tooling. This commit removes such panels and their helper
classes.

Pull Request: https://projects.blender.org/blender/blender/pulls/145708
2025-09-04 11:22:40 +02:00
Campbell Barton
75a3dad4b9 Fix #145714: mesh.validate() asserts editing immutable layers
Ensure corners layers are mutable, was only called on face-data.
2025-09-04 19:00:30 +10:00
Janne Nylander
09c16e0121 Fix #138340: Vertex group names not transferred when erasing or trimming
Trimming or erasing a grease pencil drawing would break the weights
because `vertex_group_names` wasn't transferred appropriately.
This PR adds deform group copying to `compute_topology_change`,
where other variables are transferred.

Pull Request: https://projects.blender.org/blender/blender/pulls/145516
2025-09-04 10:49:43 +02:00
Christoph Lendenfeld
debd0c0877 Anim: Remove deprecated property from POSELIB_OT_create_pose_asset
This breaks backwards compatibility.
The property `activate_new_action` of the `POSELIB_OT_create_pose_asset`
operator was deprecated previously and is no longer in use.
Removing it just breaks any uses of that operator via Python
is they pass that property.

Pull Request: https://projects.blender.org/blender/blender/pulls/145587
2025-09-04 09:36:19 +02:00
Jeroen Bakker
41bcdb26dc Fix #144887: Vulkan: Crash when downloading large images
Even when a device is capable to allocate a buffer with a certain size
it can still fail the allocation due to driver internals. This could be that
the memory area doesn't support the required flags or fragmentation.

This PR changes downloading GPU textures to CPU to use at max buffer
sizes of 2GB. Larger textures will be split over multiple buffers.

Pull Request: https://projects.blender.org/blender/blender/pulls/145568
2025-09-04 09:31:20 +02:00
Campbell Barton
16246d06d5 Fix: missing newlines loading 3D text from older blend files
Resolve regression in [0] which removed checks for `\r` without
versioning blend files.

[0]: c742a4b62b
2025-09-04 17:08:48 +10:00
Campbell Barton
a590e4fa6b Cleanup: correct comments, add __all__ to bl_pyapi_prop_array.py 2025-09-04 16:55:41 +10:00