Commit Graph

121422 Commits

Author SHA1 Message Date
Sean Kim
feec97bf51 Cleanup: Remove unused paint_utils.cc method
Pull Request: https://projects.blender.org/blender/blender/pulls/141640
2025-07-09 02:01:37 +02:00
Sean Kim
f80a3e5cbc Refactor: Add explicit default initialization to reshape_smooth structs
Pull Request: https://projects.blender.org/blender/blender/pulls/141585
2025-07-09 00:26:37 +02:00
Harley Acheson
37f10aaa4a UI: Fix Cursor Size Truncation Issue
Mouse cursor size calculation must use round rather than trunc.
Otherwise there is a decrease in cursor size from 1X -> 1.01X scale.

Pull Request: https://projects.blender.org/blender/blender/pulls/141637
2025-07-08 23:59:47 +02:00
Jonas Holzman
9fbb5916d5 Merge branch 'blender-v4.5-release' 2025-07-08 21:58:01 +02:00
Jonas Holzman
82dc3f25a7 Fix #137750: Low timeline height when restoring area layout using different DPI
This commit fixes a bug where the timeline area height was clamped to
its minimum value when restoring an area layout saved on a non-HiDPI
screen on a HiDPI screen. In particular, this caused the default Blender
startup file timeline area to be wrongly clamped dwon on macOS when
using a HiDPI/Retina screen.

This was due to the `screen_geom_vertices_scale_pass` function using raw
`area->winy` value in the `facy > 1` case, which ensures the timeline
does not get expanded when resizing the window if its already at its
minimum height. When restoring the area layout, these `winy` values
were not yet refreshed, and still used the DPI scale of the screen
the layout was saved on. Which in case of macOS HiDPI screens caused
them to be two times smaller then the screen / other size values used
in the function.

This was fixed by using the `screen_geom_area_height()` instead, which
computes the area height from its screen geometry coordinates, and was
previously used in this function before being replaced by `winy`. The
comparaison now also uses a fixed value instead of `facy` which was
also subject to DPI differencies, see PR thread for more details

Pull Request: https://projects.blender.org/blender/blender/pulls/141154
2025-07-08 21:55:52 +02:00
Guillermo Venegas
5cc4b4322a Refactor: UI: Move UI_block_layout_resolve to C++ namespace, rename
This renames UI_block_layout API as blender::ui::block_layout_resolve,
following uiLayout refactors.

This simplifies usage by returning block layout size as C++ int2 instead
of using return parameters, in fact some places were providing
unused variables.

Part of: #117604

Pull Request: https://projects.blender.org/blender/blender/pulls/141432
2025-07-08 21:16:57 +02:00
Hans Goudey
fad5b03835 Fix: Geometry Nodes: Show "Structure Type" options in alphabetical order 2025-07-08 14:51:06 -04:00
Germano Cavalcante
ff9cc9c170 Refactor: Transform, reduce array bit size by removing TransData::ext
Now that the `t->data` and `t->data_ext` arrays have the same ordering,
it is no longer necessary to include each member of `t->data_ext` in
`t->data`. Access can be done using the same index.

Pull Request: https://projects.blender.org/blender/blender/pulls/141563
2025-07-08 20:47:56 +02:00
Brecht Van Lommel
145b2173bd Merge branch 'blender-v4.5-release' 2025-07-08 18:40:13 +02:00
Brecht Van Lommel
bfacc42651 Fix: EEVEE/Workbench crash rendering without an active object
Regression from 62568d16e5, this was crashing most of the EEVEE
and Workbench render tests.

Pull Request: https://projects.blender.org/blender/blender/pulls/141624
2025-07-08 18:38:41 +02:00
Falk David
e4e119c9df Merge branch 'blender-v4.5-release' 2025-07-08 18:12:36 +02:00
YimingWu
7c8b8b2457 Fix #141475: LineArt: Prevent image editor drawing when baking strokes
Line art bakes strokes in a separate thread, which will also update
depsgraph, and if an image editor is present, it will try to iterate all
the objects in the view layer and this is unsafe. Now line art will set
region drawing lock to prevent image editor from drawing while baking.

Pull Request: https://projects.blender.org/blender/blender/pulls/141551
2025-07-08 18:11:59 +02:00
Hans Goudey
69537feb57 Curves: Avoid reallocating handle types for every transform operation
Previously we would request the handle types with write access at the
start of every transform operation. Because the attribute arrays are
also used by the latest undo step, this would cause a reallocation of
the data and a copy. Instead only request write access if we're actually
going to modify the handle types.

This also lets us avoid tagging the topology cache unless the handle
types are actually changed.
2025-07-08 11:56:52 -04:00
Sybren A. Stüvel
1e0978f291 Merge remote-tracking branch 'origin/blender-v4.5-release' 2025-07-08 17:11:59 +02:00
Sybren A. Stüvel
fc32c26722 Fix #141323: Copy to Selected doesn't properly update on some Bone props
Fix an issue with Copy to Selected on bones, where an RNA pointer was
given an owner of the wrong type.

A pointer was constructed to a `Bone` (which is owned by the
Armature), but the owner was taken from the corresponding `PoseBone`
(which is owned by the Object), causing Armature "property update"
callbacks to be called without an actual Armature. This caused the
wrong data to be tagged for re-evaluation, which caused the issue.

Also f04bc75f8c affected the Copy to Selected on edit bones.

Co-authored by Philipp Oeser

Pull Request: https://projects.blender.org/blender/blender/pulls/141394
2025-07-08 17:10:54 +02:00
Germano Cavalcante
b8458b85a5 Fix #141614: Crash canceling 'Rotate Normal' operation
For optimization, 58af30f9b9 caused the creation of TransData and
`recalc_data` for the `Rotate Normal` operation to be skipped. However
`recalc_data` may still be called if we cancel the operation thus
causing a crash.
2025-07-08 11:47:13 -03:00
Hans Goudey
13f32fdf6c Merge branch 'blender-v4.5-release' 2025-07-08 10:14:45 -04:00
Hans Goudey
4eefd4d6dc Fix: Potential assert in curves AttributeStorage versioning
The runtime type map needs to be updated even if the CustomData
ends up being empty.
2025-07-08 10:04:01 -04:00
Sean Kim
11a0364495 Merge branch 'blender-v4.5-release' 2025-07-08 06:55:23 -07:00
Sean Kim
62568d16e5 Fix #140621: Multi-object edit mode displays non-active UVs as faded
The feature to display multiple objects in the UV and Image Editor was
added in 24d08e0bae.

This commit did not account the multi-edit mode feature, where there may
be more than one object currently being edited, causing some UVs to
display with a faded opacity.

To fix this, introduce a new `eObjectInfoFlag` flag to indicate this
state, populate it when syncing the object, and use the flag inside the
relevant shaders.

Pull Request: https://projects.blender.org/blender/blender/pulls/141254
2025-07-08 15:51:09 +02:00
Falk David
139cfea4ac Merge branch 'blender-v4.5-release' 2025-07-08 15:49:04 +02:00
Casey Bianco-Davis
46a6641c4d Fix: Grease Pencil: Bezier handle types not updating when transforming
When handles are selected but not the control point this will convert the types `auto` to `align` and `vector` to `free`

This adds `tag_topology_changed` to make sure the handle types are updated.

This also fixes a problem where `free` handle would not be transformed with the control point.

Implement following Curve objects #128638

Pull Request: https://projects.blender.org/blender/blender/pulls/141438
2025-07-08 15:47:38 +02:00
Jeroen Bakker
125726cda0 Merge branch 'blender-v4.5-release' 2025-07-08 15:43:37 +02:00
Jeroen Bakker
20bad6e29a Fix #141477: Crash during material selection
Material selection didn't support empty geometries. Geometry list can
have nullptrs, when meshes contain more than 16 materials, but some
materials slots are not actually used in the mesh.

Material selection used to still looped over all the materials and
tried to draw geometry that aren't there.

Regression from !139781

Pull Request: https://projects.blender.org/blender/blender/pulls/141608
2025-07-08 15:42:59 +02:00
Pratik Borhade
a440cf47d9 Fix #141235: Unable to pick any brush from the Asset Popup
Caused by a7b4137f3e. Callback was replaced by new click select
operator. This operator doesn't work due to missing keyitem pair in
every keymap which allows asset_shelf_popover. Adding keymap itself
wasn't sufficient, poll function was failing due to popover being closed
after click. Now fixed by forcing `activate()` inside
`force_activate_view_item_but`.

Pull Request: https://projects.blender.org/blender/blender/pulls/141263
2025-07-08 15:20:40 +02:00
Campbell Barton
58959caac9 Merge branch 'blender-v4.5-release' 2025-07-08 23:02:01 +10:00
Marc Hamamji
2aa7502d3b Fix #139533: Select vertices and faces after bevel operation
When beveling a vertex with only 2 connected edges, the resulting
geometry was not selected.

Resolve by not only selecting the faces created by the bevel operation,
but also selecting the vertices created.

Note: apply the same change as before,
the LFS data has been manually pushed.

Ref !139691
2025-07-08 22:57:41 +10:00
Brecht Van Lommel
63cfc32dea Merge branch 'blender-v4.5-release' 2025-07-08 14:56:00 +02:00
Alaska
6cd82784a5 Fix #141519: EEVEE automatic light threshold doesn't work with exposure
Pull Request: https://projects.blender.org/blender/blender/pulls/141526
2025-07-08 14:55:14 +02:00
Campbell Barton
d9a5377104 Merge branch 'blender-v4.5-release' 2025-07-08 22:20:28 +10:00
Campbell Barton
1eb9933e5e Merge branch 'blender-v4.5-release' 2025-07-08 22:20:25 +10:00
Campbell Barton
cbb32d104a Revert "Fix #139533: Select vertices and faces after bevel operation"
This reverts commit 3f6262f115.

There is a problem with the blend file not being on the server,
Reverting until the issue can be resovled.
2025-07-08 22:19:58 +10:00
Jeroen Bakker
402cf10760 Fix #141476: Vulkan: Disable descriptor buffer on Windows/Intel
Windows/Intel GPU crashes when descriptor buffer cannot be allocated
anymore. This PR enables a workaround by not using descriptor buffers.

In future we should investigate how to improve the GC of descriptor
buffers and review the limits.

Pull Request: https://projects.blender.org/blender/blender/pulls/141600
2025-07-08 14:02:51 +02:00
Campbell Barton
5f4478f2e4 Merge branch 'blender-v4.5-release' 2025-07-08 22:02:07 +10:00
Campbell Barton
dd574b2f85 Merge branch 'blender-v4.5-release' 2025-07-08 22:02:03 +10:00
Andrej730
8246ea913f Fix: wrong argument name in doc-string
Correct regression from !141334.

Ref !141592
2025-07-08 12:00:32 +00:00
Habib Gahbiche
3eb4a59a13 Fix: Viewer nodes inside node groups not updating properly
Switching back and forth between viewers with shortcuts doesn't trigger
the compositor to update as expected when inside a node group.
See PR description for an example file.

The issue was caused by a missing tree update.

Pull Request: https://projects.blender.org/blender/blender/pulls/141606
2025-07-08 13:52:53 +02:00
Campbell Barton
26c90076cf Merge branch 'blender-v4.5-release' 2025-07-08 21:50:49 +10:00
Marc Hamamji
3f6262f115 Fix #139533: Select vertices and faces after bevel operation
When beveling a vertex with only 2 connected edges, the resulting
geometry was not selected.

Resolve by not only selecting the faces created by the bevel operation,
but also selecting the vertices created.

Ref !139691
2025-07-08 21:42:11 +10:00
Campbell Barton
6a9cccb917 Merge branch 'blender-v4.5-release' 2025-07-08 20:35:32 +10:00
Campbell Barton
cce5dee245 Merge branch 'blender-v4.5-release' 2025-07-08 20:35:22 +10:00
Jason C. Wenger
065313eabe Fix edge dissolve behavior with face-split
Correct problem where face split inadvertently triggered the
un-triangulate detection logic in places due to freshly added diagonals.

Defer face split until after tagging is complete so the new edges don't
interfere with edge counting.

Ref !141511
2025-07-08 10:33:25 +00:00
Pratik Borhade
e275497bfc Fix: Update tree view when selecting shape key from dopesheet
Set `shapenr` and add notifier condition in listener callback to update
tree view when shape key channel is selected in dopesheet

Pull Request: https://projects.blender.org/blender/blender/pulls/141541
2025-07-08 12:11:53 +02:00
Falk David
a1893bf5e1 Fix #139194: Grease Pencil: Crazyspace deformation broken when evaluated layers don't match original
When the layer tree in the evaluated state of the Grease Pencil object changed,
the code would fail to get the crazyspace deformation.

Currently we rely on a 1 to 1 index mapping of the original and evaluated
layers. For obvious reasons, this is very weak and can easily break.

The new implementation works as follows:
* Caller that wants to get the crazyspace deformation passes the evaluated and original
   object + the original drawing to get the deformation of.
* Fallback deformation are the original positions.
* If there are drawing edit hints in the evaluated geoemtry set, then
  * find the edit hint that corresponds to the original drawing
  * use the positions in the edit hint.

To create the drawing edit hints, we need to know what evaluated layer corresponds
to which original layer. Currently, this simply stores the original layer index on the
evaluated layer runtime data.

The solution is not ideal and there are some possible improvements like:
* Find a way to solve the more general case, e.g. when there are multiple original
  IDs involved.
* Propagate the "mapping" to original layers even when the type of geometry is
  changed, like going to curve instances and back.

Pull Request: https://projects.blender.org/blender/blender/pulls/139285
2025-07-08 12:11:42 +02:00
Guillermo Venegas
4c7e1264a3 Fix: Asset shelf scrolling distance wrong when scrolling down
The currently it requires the mouse to `1.5 * page_size`
from the top to the bottom to scroll down, this change
instead makes the pan scroll to happen every half page
size in both directions.

Completes fixes for #110779

Pull Request: https://projects.blender.org/blender/blender/pulls/111520
2025-07-08 12:02:48 +02:00
Omar Emara
44f86dc7ed Merge branch 'blender-v4.5-release' 2025-07-08 12:47:15 +03:00
Omar Emara
1dbeeacc80 Fix: Kuwahara Size can be negative
The Kuwahara node allows negative size which this should not be the
case.
2025-07-08 12:45:28 +03:00
Eitan Traurig
07994003b6 UI: Disable mirror and update shape from objects shapekey operators when list is empty
Grey out these operators when shape key list is empty.

See images in PR description

Pull Request: https://projects.blender.org/blender/blender/pulls/141468
2025-07-08 11:39:10 +02:00
Habib Gahbiche
c99a35123e Merge branch 'blender-v4.5-release' 2025-07-08 11:35:01 +02:00
Benjamin Beilharz
b709984df6 Compositor: Add Extension Mode for Transform node
This commit introduces the extension modes to the transform node and
further streamlines the node properties by wrapping all props in a node
storage. Therefore, the interpolation mode has been removed from the
custom properties of the node and moved into the node storage.

Pull Request: https://projects.blender.org/blender/blender/pulls/141487
2025-07-08 11:34:29 +02:00