Commit Graph

155153 Commits

Author SHA1 Message Date
Harley Acheson
3de61b7f7f Merge branch 'blender-v5.0-release' 2025-10-17 14:53:20 -07:00
Harley Acheson
e259769e9d Fix #148143: Increase Curve Mapping Point Size
This PR increases the points shown on the Curve Mapping widget a bit,
with the selected ones ever larger. This is more in line with what we
saw in 4.5. This also draws the points with AA by changing to a
different shader - which means drawing the selected ones separate from
the unselected ones.

Pull Request: https://projects.blender.org/blender/blender/pulls/148176
2025-10-17 23:51:46 +02:00
Philipp Oeser
cc44420912 Cleanup: rename region_evaulate_visibility > region_evaluate_visibility
_No response_

Pull Request: https://projects.blender.org/blender/blender/pulls/148268
2025-10-17 19:44:59 +02:00
Pablo Vazquez
4340d5fff9 Merge branch 'blender-v5.0-release'
# Conflicts:
#	source/blender/blenkernel/BKE_blender_version.h
#	source/blender/blenloader/intern/versioning_userdef.cc
2025-10-17 18:53:10 +02:00
Pablo Vazquez
829c6a7b98 Fix #141889: Broken themes in 5.0
Blender 5.0 got a theme overhaul, removing hundreds of options and
adding some more. While versioning was attempted to keep themes
looking as close as possible, some settings are impossible to guess
so they require manual editing.

Reset the theme to the default. Similarly to how it was done in other
major overhauls (2.80, 3.0).

Documentation and tools to migrate themes will be available at:
https://developer.blender.org/docs/release_notes/5.0/user_interface/

Pull Request: https://projects.blender.org/blender/blender/pulls/147637
2025-10-17 18:50:29 +02:00
Clément Foucault
a003b27244 Refactor: Compositor: Use template instead of macros for compositor_parallel_reduction.glsl
Rel #143582

This also adds support for C++ compilation of this shader.
See https://developer.blender.org/docs/features/gpu/tools/cpp_shader_compilation/

Pull Request: https://projects.blender.org/blender/blender/pulls/144904
2025-10-17 18:38:07 +02:00
Falk David
e1ca851276 Merge branch 'blender-v5.0-release' 2025-10-17 17:22:16 +02:00
Casey Bianco-Davis
316fe67295 Fix #147756: Grease Pencil: Join Operator crash because of resolution attribute
When strokes from to different layers get joined together, if one layer
had the `resolution` attribute and the other did not. The new
`resolution` attribute would be left with uninitialized values and then
a crash would happen.

This fixes this by filling all attributes that didn't exist with their
default value.

This also ensures that when strokes are removed, the drawing is
tagged as dirty.

Pull Request: https://projects.blender.org/blender/blender/pulls/147948
2025-10-17 17:21:33 +02:00
Clément Foucault
73d714832e GPU: Shader: Put layout definition above resources and typedefs
This allow resources declaration to include gl_WorkgroupSize.
2025-10-17 17:01:06 +02:00
Brecht Van Lommel
aab29c1ba6 Merge branch 'blender-v5.0-release' 2025-10-17 16:42:22 +02:00
Brecht Van Lommel
acb20247a5 Cycles: Remove HIP-RT stability warning now that this has been fixed
Ref #147247
2025-10-17 16:33:27 +02:00
salipour
b491002a9d Fix: Cyles HIP-RT random crashes editing the scene
Perform delayed freeing of the geometry BVHs similar to OptiX.

Previously BLAS memory was allocated in the device class as part of
device_update, but released in the BVHHIPRT destructor which gets called
when deleting geometry outside of device_update.

To avoid the GPU accessing unmapped memory, do a delayed free of this
memory in the device class as part of either device_update or device
destruction. This ensures it is in sync with other device memory changes.

Fix #148276
Fix #139013
Fix #138043
Fix #140763

Pull Request: https://projects.blender.org/blender/blender/pulls/147247
2025-10-17 16:32:23 +02:00
Damien Picard
58b8ae1717 UI: Fix a few typos
- "Acion Slot" -> "Action": typo.
- "Specifies the input node used the created zone" -> "by the created
  zone": typo.
- "No reference available {!r}, Update..." -> "update": lower case.
- "uninitialized file-list" -> "Uninitialized": sentence case.

Some issues reported by Alexandr Fatih.

Pull Request: https://projects.blender.org/blender/blender/pulls/148265
2025-10-17 16:13:30 +02:00
Pratik Borhade
2902255424 Fix #147535: Regression: Rest Position toggle only shows when shapekeys list is not empty
Since "Add Rest Position" is not a shape key property, move it out of
`draw_shape_key_properties`. That way property will be drawn even when
list is empty.

See PR description for photos

Pull Request: https://projects.blender.org/blender/blender/pulls/147685
2025-10-17 15:32:49 +02:00
илья _
7e4eed8777 Tests: Improve test coverage of edge calculation code
Since recent change in code of edge deduplication there is bunch of
reports about regressions whose were not found by tests. This commit
add some of recently explored cases to test coverage, right from
#147961. Not sure how to cover other know case from #147797 due to
use of USD file as source.

Pull Request: https://projects.blender.org/blender/blender/pulls/148237
2025-10-17 15:22:33 +02:00
Philipp Oeser
11001624ff Merge branch 'blender-v5.0-release' 2025-10-17 15:06:41 +02:00
Philipp Oeser
1de7b4372c Fix #148229: Vertex weights in wrong groups after joining meshes
Caused by 113d91aba8

Code first gathers a list of all vertexgroups on all objects.
Then it iterates the objects to join, and for each of them, puts their
vertexgroups in an index map.
However (by a typo?), it was doing it for the `active mesh` (instead of
the one currently visited) over and over again, resulting in weights
from other objects written to `def_nr` from groups of the `active mesh`.

Now corrected.

Pull Request: https://projects.blender.org/blender/blender/pulls/148259
2025-10-17 15:06:24 +02:00
Jacques Lucke
0f71665e4e Merge branch 'blender-v5.0-release' 2025-10-17 14:41:18 +02:00
Jacques Lucke
c990cd6759 Fix: correct previous commit
This is an alternative to ba0f73d076. I'm not exactly sure why that on
didn't work yet. Seems like there is some hidden state somewhere, not sure.

Now this fix is more similar to what is done in `curves_blend_write`.

Pull Request: https://projects.blender.org/blender/blender/pulls/148267
2025-10-17 14:40:43 +02:00
Clément Foucault
632bd741f7 Fix #148071: EEVEE: Crash when using Sky Texture + Multi-scattering
Caused by some tricky use after-free / stack corruption.
This affect both Cycles and EEVEE.

The `sms` local variable is getting dereferenced by `get_inscattering`
inside the threaded for loop but is passed by copy to the lambda expression.
This makes its lifetime ill-defined in a multithreaded context.
I am not fully sure about the rules at play here so maybe my understanding
is wrong. But removing the call to `get_inscattering` avoids the crash.

Note that `SkyMultipleScattering` is also very big (it contains the whole LUT).
So copying it might have caused stack overflow. But that should trigger a
system interupt.

Passing everything by references fixes the issue.
This seems to be safe since all as the other local variables are `const` anyway.
Also the loop doesn't seem to modify the one that aren't.

Pull Request: https://projects.blender.org/blender/blender/pulls/148260
2025-10-17 14:39:31 +02:00
Clément Foucault
dbe44027c2 GL: Shader: Add missing accessor macro for shared variables 2025-10-17 14:23:50 +02:00
Clément Foucault
03d7ae9bf3 Compositor: Add support for shader C++ compilation
This is mostly stubs for now but they should be
ported overtime.

See the documentation for more info on this:
https://developer.blender.org/docs/features/gpu/tools/cpp_shader_compilation/

Splited from #144904

Pull Request: https://projects.blender.org/blender/blender/pulls/148261
2025-10-17 14:21:24 +02:00
Bastien Montagne
c8e0d14506 Merge branch 'blender-v5.0-release' 2025-10-17 14:20:11 +02:00
Bastien Montagne
861a174a82 Fix #148220: Scene 'Linked Copy' does not remap to newly copied data-block.
While more of a theoritical issue currently, this change is a
pre-requisite to support properly compo nodes duplication in 'linked
copy' case (see !148210).

Also add a basic unittest for this case.

Pull Request: https://projects.blender.org/blender/blender/pulls/148222
2025-10-17 14:17:42 +02:00
Jacques Lucke
81296027a9 Merge branch 'blender-v5.0-release' 2025-10-17 13:11:12 +02:00
Jacques Lucke
ba0f73d076 Fix: crash writing undo step for grease pencil
This was missing from #148144.
2025-10-17 13:10:37 +02:00
Aras Pranckevicius
facb17b0e3 Cleanup: BLI ENUM_OPERATORS cleanup/robustness
BLI code for enums that are meant to be used as "bit flags" defined
an ENUM_OPERATORS macro in BLI_utildefines.h. This cleans up things
related to said macro:

- Move it out into a separate BLI_enum_flags.hh header, instead of
  "random bag of things" that is the current place,
- Update it to no longer need manual indication of highest individual
  bit value. This originally was added in a31a87f89 (2020 Oct), in
  order to silence some UBSan warnings that were coming
  from GPU related structures (looking at current GPU code, I don't
  think this is happening anymore). However, that caused actual
  user-visible bugs due to incorrectly specified max. enum bit value,
  and today 14% of all usages have incorrect highest individual
  bit value spelled out.
    - I have reviewed all usages of operator ~ and none of them are
      used for directly producing a DNA-serialized value; all the
      usages are for masking out other bits for which the new ~
      behavior that just flips all bits is fine.
- Make the macro define flag_is_set() function to ease check of bits
  that are set in C++ enum class cases; update existing cases to use
  that instead of three other ways that were used.

Pull Request: https://projects.blender.org/blender/blender/pulls/148230
2025-10-17 12:57:50 +02:00
Jeroen Bakker
94ba670fac Cleanup: Remove rendundant code
Frontfacing was set twice.
2025-10-17 11:43:50 +02:00
Habib Gahbiche
44e4d9973c Fix #148053: Sensor Noise 5.0 inclued compositing asset contains an unused node
Remove unused math, reroute and viewer nodes

Pull Request: https://projects.blender.org/blender/blender/pulls/148228
2025-10-17 11:38:50 +02:00
Jeroen Bakker
ac30e9018b Cleanup: Remove out-dated comment 2025-10-17 11:32:11 +02:00
Philipp Oeser
3dd5da4e9c Merge branch 'blender-v5.0-release' 2025-10-17 10:23:06 +02:00
Philipp Oeser
48dc788e6d Fix #145488: UI: Flipped rows/columns in custom matrix property
Since matrices are usually indexed **row first**, displaying matrices in
the UI seems flipped.
They are stored as flat arrays.
When `matrix[1][0]` is accessed via python, the logic from
`pyrna_py_from_array_index` will actually look up index 2 in the flat
array (rightfully so).

But UI code was flipped in that regard.
The second value in the flat array **should** show at row 1 column 0,
but it currently doesnt.

Now (hopefully) handled properly (not only in `ui_item_array` but also
made code in `ui_item_rna_size` detect proper row count for a `height`)

Pull Request: https://projects.blender.org/blender/blender/pulls/148197
2025-10-17 10:22:51 +02:00
Philipp Oeser
6deb41fda2 Merge branch 'blender-v5.0-release' 2025-10-17 10:21:16 +02:00
Philipp Oeser
fca5bcbe46 Fix #146250: Some gizmos/widgets are continuously running updates
Reported for the geometry nodes gizmos, but in general `cage2d`,
`cage3d` and `arrow` were affected (so for example Forcefield arrows, UV
editing transform tool, Lamp angle gizmo, ...)

`gizmo_cage3d_modal`, `gizmo_cage2d_modal` and `gizmo_arrow_modal` add a
`WM_event_add_mousemove` which ... lets the modal run even if the mouse
does **not** move...

This seems to date back to d8f931c9b7 in the arrow gizmo, others
probably just copied from there (not the DialGizmo though), did not do
further git archeology.

Propose to just remove `WM_event_add_mousemove` (even though there
_might_ still be reasons for this -- could not spot any though...)

Pull Request: https://projects.blender.org/blender/blender/pulls/146310
2025-10-17 10:21:01 +02:00
Philipp Oeser
ab0ab3cf3b Merge branch 'blender-v5.0-release' 2025-10-17 10:19:28 +02:00
Philipp Oeser
6536fd80fc Fix #144359: Scrolled down Asset Shelf prevents drag & drop in viewport.
The issue is in the `ED_region_overlap_isect_` family of functions I
believe. Their purpose is to check if a coordinate is in the
"non-transparent" or opaque parts of the overlapping region.

These are getting event coordinates (in window space), converted to
region relative space (substracting region->winrct).

Comparison is in view space (through `UI_view2d_region_to_view_y`)
to account for scrolling and zooming.

The thing where it goes wrong is that we are actually comparing to
`region->v2d.tot` (this can be huge, most of it not visible), where I
think we should be comparing to `region->v2d.cur` (that is the part that
is actually visible...)

Swapping `region->v2d.tot` with `region->v2d.cur` is what this PR does.

Pull Request: https://projects.blender.org/blender/blender/pulls/146032
2025-10-17 10:19:15 +02:00
Philipp Oeser
d99aac494e Merge branch 'blender-v5.0-release' 2025-10-17 10:17:02 +02:00
Philipp Oeser
77819d77d2 Fix #146251: Moving masks via transform system does not update gizmos
Oversight in 4bede1b555

`transformApply` / `transformEnd` already gives us a `NC_MASK |
NA_EDITED` notifier (via `viewRedrawForce`), so listen to that in
`image_main_region_listener`.

NOTE: alternatively, we could send an appropriate notifier in
`special_aftertrans_update__mask` (or remove the condition from the one
that is already there), with the difference that the gizmo would only
update after the transform is confirmed -- which may or may not be
desired

Pull Request: https://projects.blender.org/blender/blender/pulls/146292
2025-10-17 10:16:49 +02:00
Campbell Barton
829d2074a6 Merge branch 'blender-v5.0-release' 2025-10-17 15:14:32 +11:00
Campbell Barton
a7238c5c32 Merge branch 'blender-v5.0-release' 2025-10-17 15:14:29 +11:00
Campbell Barton
f3a1425fb8 Merge branch 'blender-v5.0-release' 2025-10-17 15:14:23 +11:00
Eitan Traurig
070344c06f Fix #147924: Move on Axis dynamic uses tile size instead of dynamic size
Ref !147933
2025-10-17 15:10:12 +11:00
Campbell Barton
6c1375513f Docs: correct comment 2025-10-17 15:09:07 +11:00
Alaska
6ccf323ed4 Release note tools: Add 5.1 to the list of official Blender versions for the bug fixes per release script
Pull Request: https://projects.blender.org/blender/blender/pulls/147663
2025-10-17 05:04:47 +02:00
Campbell Barton
22cf4730f0 Merge branch 'blender-v5.0-release' 2025-10-17 14:02:16 +11:00
Campbell Barton
688c389e1a Fix #148051: Duplicate wheels when extension build using "paths"
Extension manifests defining both wheels and a literal paths included
wheels in the ZIP file twice.

Ref !148247
2025-10-17 13:59:52 +11:00
Campbell Barton
e6044da029 Merge branch 'blender-v5.0-release' 2025-10-17 11:50:01 +11:00
Campbell Barton
c1a7d6f24d Docs: update cursor warp comment, note vulkan buffer size bug
Cursor warping is now supported by Wayland protocols, however I'd
rather not use it given the issues it's caused on other platforms.
2025-10-17 00:46:40 +00:00
Sean Kim
e46bbfc2e7 Merge branch 'blender-v5.0-release' 2025-10-16 13:44:27 -07:00
Sean Kim
fd3d9f2fa2 Fix #148064: Crash when using grease pencil fill tool
The recently introduced size, strength, and jitter pressure curves
affect most paint code. This exposed further odd behavior inside
`paint_brush_update` where the size pressure curve was being evaluated
even if the brush's size did not vary with pressure.

To fix this issue, this commit clarifies a few comments and updates the
code flow such that cached input values and evaluated pressure values
are used more consistently.

Pull Request: https://projects.blender.org/blender/blender/pulls/148077
2025-10-16 22:43:32 +02:00