Commit Graph

113526 Commits

Author SHA1 Message Date
Falk David
dfc69eb750 Fix: GPv3: Issues in BKE_grease_pencil_nomain_to_grease_pencil
* Handle the case where `drawing_array_num` is 0.
* Reset the pointer of the active node (because it is no longer valid)
* Cleanup copy-paste error in docstring
2024-09-30 14:48:45 +02:00
Alaska
6c52e4752f Fix #128113: Incorrect display of facing overlay on transparent textures in solid mode
Use DRW_STATE_DEPTH_EQUAL when we know the correct
depth buffer values are available

Pull Request: https://projects.blender.org/blender/blender/pulls/128163
2024-09-30 14:35:42 +02:00
Jacques Lucke
d8319f6f50 Fix: Geometry Nodes: propagate gizmo values through muted nodes 2024-09-30 14:34:51 +02:00
Pratik Borhade
45813afbc0 GPv3: Show select operators in vertex paint mode
They are greyed out due to wrong poll function.

Pull Request: https://projects.blender.org/blender/blender/pulls/128364
2024-09-30 14:31:27 +02:00
Pratik Borhade
6d8e642367 GPv3: Increase minimum rows in layers panel
There is empty space between the layers panel and the properties below.
Increase minimum rows to remove the empty area.

Pull Request: https://projects.blender.org/blender/blender/pulls/128368
2024-09-30 14:30:33 +02:00
Laurynas Duburas
71098ce904 Overlay-Next: Add NURBS edit handles
Draws NURBS edit handles in Overlay-Next.

Rel #102179

Pull Request: https://projects.blender.org/blender/blender/pulls/128093
2024-09-30 14:27:21 +02:00
Clément Foucault
d401b36509 GPU: Metal: Fix background render crash
GHOST_CreateSystemBackground was not being
followed by the now mandatory GPU_backend_ghost_system_set
2024-09-30 14:20:12 +02:00
Jacques Lucke
5163af816d Fix: Geometry Nodes: propagate edit data through foreach zone
Without this, gizmos don't work in some cases.
2024-09-30 14:14:22 +02:00
Jacques Lucke
1b31a44935 Geometry Nodes: support inverse evaluation for Integer Math node for gizmos 2024-09-30 14:00:32 +02:00
Laurynas Duburas
e40c9b414a Overlay-Next: Attribute viewer
Rel #102179

Pull Request: https://projects.blender.org/blender/blender/pulls/127772
2024-09-30 13:55:05 +02:00
Omar Emara
412e07173f Fix #127243: Crash when viewing invalid images
Blender crashes when viewing invalid images in the compositor. That's
because cached images will not be null, but will be unallocated, so to
fix this, we check allocation status as well as nullptr in the image
node.
2024-09-30 14:42:47 +03:00
Clément Foucault
a39a966328 Overlay-Next: Fix glitches with the grid
The vertex array was allocating uninitialized memory.
This fixes the API usage mistake and do the
intended reserve call.
2024-09-30 13:05:02 +02:00
Clément Foucault
5c42dd3ae7 Overlay-Next: Fix wrong uniform size error 2024-09-30 13:05:01 +02:00
Julian Eisel
9c519d8b69 Fix #128349: Right clicking a sculpt brush in tool settings crashes
Getting the active tool from context doesn't work exactly when executed
from the properties editor, which shows the active tool settings of the
3D view. Make the brush tool code fallback to the active tool from the
3D view, so it can be called from the properties.
2024-09-30 12:43:43 +02:00
priera
ce7667f3b1 GPv3: Join Operator
Adds the `Join` operator in edit mode to connect the selected strokes
by their endpoints.

Resolves #113582 and #113570.

Pull Request: https://projects.blender.org/blender/blender/pulls/117916
2024-09-30 12:16:40 +02:00
Jeroen Bakker
91eac6c771 Cleanup: Make format 2024-09-30 12:07:18 +02:00
Jeroen Bakker
ac24912736 Fix #128315: EEVEE: Uneven cryptomatte levels
When using uneven cryptomatte levels the number of cryptomatte layers
weren't sufficient due to rounding error.

Issue should be backported to 4.2

Pull Request: https://projects.blender.org/blender/blender/pulls/128358
2024-09-30 12:04:44 +02:00
Sybren A. Stüvel
2d5591b63f Cleanup: mark unused variables as such
Mark two `unassign_ok` variables as unused in non-debug builds. They're
only checked in `BLI_assert` calls.

No functional changes.
2024-09-30 11:59:45 +02:00
Sybren A. Stüvel
259091363f Refactor: Anim, remove use of MutableSpan in layered Actions C++ wrappers
Users of the layered Actions API should never mutate the data via these
spans, and so the functions should always return just a `Span<>`.

No functional changes.

Pull Request: https://projects.blender.org/blender/blender/pulls/128264
2024-09-30 11:51:14 +02:00
Jason Fielder
eb3fe75392 Metal: Add support for parallel compilation and precompilation specialisation
This speeds up EEVEE startup and material compilation time.

Authored by Apple: James McCarthy
Pull Request: https://projects.blender.org/blender/blender/pulls/125657
2024-09-30 11:21:28 +02:00
Jacques Lucke
13391c14d8 Spreadsheet: use more obvious fallback name for geometries
Instead of `Geometry`, the fallback name is now `(Geometry)`. The goal is to
make it more obvious that this is not the actual name, but just a fallback. With
some luck it also motivates people to use better custom names.

The same thing is done for grease pencil layer names.

Pull Request: https://projects.blender.org/blender/blender/pulls/128207
2024-09-30 11:18:01 +02:00
Jacques Lucke
83fa565ec2 Nodes: improve inserting nodes with link-drag-search
This makes link-drag-search more convenient when one wants to insert a new node
between existing nodes. The change currently also affects normal node-insertion
when dragging it. The exact behavior still has to be figured out.

Pull Request: https://projects.blender.org/blender/blender/pulls/128197
2024-09-30 11:14:43 +02:00
Pratik Borhade
866ef5b468 Fix #126587: GPv3: Select less fails if all points in stroke selected
Handle the case separately when end points of strokes are selected.
Always deselect them (i.e. set "true", later array values are inverted)
when executing select less operation.

Pull Request: https://projects.blender.org/blender/blender/pulls/126591
2024-09-30 11:00:34 +02:00
Pratik Borhade
7f226dc8ed Fix: GPv3: Redraw outliner when group is added
Send notifier which outliner space can listen to redraw elements
when group is added.

Pull Request: https://projects.blender.org/blender/blender/pulls/128289
2024-09-30 10:59:20 +02:00
Pratik Borhade
17fc09d5aa Fix: GPv3: Group color tag icons in outliner and dopesheet
Missed in cea18e62c5.

Pull Request: https://projects.blender.org/blender/blender/pulls/128287
2024-09-30 10:58:58 +02:00
Pratik Borhade
99bf9f4534 GPv3: Add keys to all layers in sculpt mode
When auto key is enabled, add keys to all layers in sculpt mode.
After 37458329e2,  `ensure_active_keyframe` accepts layer argument. Run
a loop over all the layers, call above function to handle keyframe/drawing at
current frame.

Resolves #127650.

Pull Request: https://projects.blender.org/blender/blender/pulls/127849
2024-09-30 10:48:54 +02:00
Jeroen Bakker
6ec35c619f Vulkan: Reduce Pipeline Logging
Pipeline pool could log to much information that confused developers who
are not up to date what pipelines are. This PR will hide the confusing
messages. When working on Vulkan these messages can still be shown by
raising the log level.

See !128254

Pull Request: https://projects.blender.org/blender/blender/pulls/128352
2024-09-30 08:46:17 +02:00
Jeroen Bakker
b6aa4a3142 OpenGL: Add Intel HD 405 to limited support.
This rare GPU has z-fighting issues in editor mode. Might be fixable by
changing the bias, but would decrease precision on other platforms as
well. Better to move this GPU to limited support. It is working, just
has some drawing artifacts.

See #128179

Pull Request: https://projects.blender.org/blender/blender/pulls/128351
2024-09-30 08:44:12 +02:00
Campbell Barton
9b8b03d8e6 Mesh: comments for a code-blocks which can leak memory 2024-09-30 13:40:48 +10:00
Campbell Barton
c852f7402e Fix #128226: Memory leak selecting meshes in multi-object edit-mode
The meshes custom data-mask edit-mode check only considered the object
in edit-mode if it was the active object. This isn't correct as multiple
objects can be in edit-mode at once.

The potential for `mesh_get_eval_deform` to leak memory remains,
this just avoids an unnecessary mesh re-generation on selection
(which was causing the leak), see: !128228 for details.
2024-09-30 13:23:25 +10:00
Hans Goudey
a2d9d9e987 Fix #128269: Performance regression for some brushes
Brushes that restored from undo step data on every brush
iteration triggered a performance regression because of
missing filtering of unchanged nodes after recent changes
to the PBVH dirty positions tagging system. There was a
TODO comment left from 76c322047e that
I had forgotten about.
2024-09-29 21:54:12 -04:00
Hans Goudey
ce301be39e Fix #128328: Missing PBVH draw data reupload of non-visible nodes
For example, undoing an entire-mesh operation when only a small part
of it is visible wouldn't affect the currently out-of-view BVH nodes.
2024-09-29 21:20:12 -04:00
Hans Goudey
eb6b96e70c Cleanup: Avoid unnecessary string copy when adding attribute 2024-09-29 19:01:17 -04:00
Sean Kim
60acd02cf9 Fix: Sculpt: Clay strips brush ignores hardness
Fix in 690d89089f was incomplete, did not
affect Dyntopo and Multires

Pull Request: https://projects.blender.org/blender/blender/pulls/128332
2024-09-29 21:08:01 +02:00
Sean Kim
4bc146f00a Refactor: Sculpt: Access mesh attributes once per brush step
Part of #118145.

Prior to this commit, for each node that a brush step affected, we would
look up the `.sculpt_mask` and `.hide_vert` attributes. To avoid this
overhead, this commit creates a helper struct to hold commonly used
attributes and reduces the frequency that they are accessed.

Pull Request: https://projects.blender.org/blender/blender/pulls/128286
2024-09-29 20:28:35 +02:00
Leon Schittek
012b0ec528 Fix #128262: Fix alignment in Grease Pencil layer tree view
Remove the additional padding that was added to groups in the Layer
tree view to align the icons and labels with the ones from the normal
layers.

Pull Request: https://projects.blender.org/blender/blender/pulls/128305
2024-09-29 15:21:21 +02:00
Pratik Borhade
774bf48925 Fix: Build error without OpenVDB
Wrong identifier added in 5e46e3d28a. Should be `WITH_OPENSUBDIV`

Pull Request: https://projects.blender.org/blender/blender/pulls/128318
2024-09-29 08:47:37 +02:00
Campbell Barton
9c8c786a05 Fix error in studiolight preview
Regression in [0].

[0]: 473bd60164
2024-09-29 14:57:36 +10:00
Germano Cavalcante
68c3517871 Fix: 'Snap to Grid' defaults to 'Center' instead of 'Median' when 'Closest' is selected
The 'Closest' 'Snap With' option does not work well with 'Snap to Grid'
due to the unpredictable nature of this 'Snap With' option. That's why
another option is used in this case.

The option chosen in this case is the same one that was used in
'Absolute Grid Snap', that is, 'Median'.
2024-09-28 17:45:34 -03:00
Hans Goudey
d24483e0cf Geometry: Use StringRef for vertex group lookup
Fixes incorrect usage of StringRef in new grease pencil code, where
`.data()` was passed as a null terminated C string. Removes the now
unnecessary `std::string` creation that attribute accessors used to
fix that problem.

Pull Request: https://projects.blender.org/blender/blender/pulls/128298
2024-09-28 20:58:34 +02:00
Hans Goudey
68be2d9af1 Cleanup: Add helper function to access vertex group index from name
In addition to the existing function which takes an ID argument.
2024-09-28 10:39:04 -04:00
Hans Goudey
751e009898 Cleanup: Remove unused variables in USD attribute writing 2024-09-28 10:26:22 -04:00
Hans Goudey
690d89089f Fix: Sculpt: Clay strips brush ignores hardness
Error in 6d9641daee.
The cube distances calculation actually doesn't fully process hardness.
2024-09-28 10:25:37 -04:00
Iliya Katueshenock
117d4a51c3 Fix #128193: conditional socket visibility broken on Distribute Points on Faces node
Missed disabling of the sockets.

Pull Request: https://projects.blender.org/blender/blender/pulls/128214
2024-09-27 22:22:26 +02:00
Jacques Lucke
578fd9b10e Geometry Nodes: support grease pencil in Duplicate Elements node
This adds support for using the Duplicate Elements node on grease pencil on the
point, curve and layer domain.

Pull Request: https://projects.blender.org/blender/blender/pulls/128210
2024-09-27 21:54:19 +02:00
Jesse Yurkovich
63a4b45b43 Cleanup: USD: take advantage of new AttributeIter::get API
Make use of the potentially more efficient `AttributeIter::get` API.

Pull Request: https://projects.blender.org/blender/blender/pulls/128211
2024-09-27 21:38:01 +02:00
Sean Kim
6d83f9a6b3 Cleanup: Sculpt: Extract common factor calculation methods
Part of #118145.

This PR introduces a number of helper methods used across the brush
implementations to reduce duplication when calculating a base value for
the `factors` array.

Not all brushes have been ported to use these helper methods - a
conservative approach was taken to avoid adding complexity for the
common case.

Pull Request: https://projects.blender.org/blender/blender/pulls/128235
2024-09-27 20:42:54 +02:00
Jesse Yurkovich
6c62fe7ac8 Fix: Hydra memory leak when generated images are saved
When attempting to cache a generated image, the ImageFormatData's
view_settings would inadvertently be leaked due to the settings being
assigned a different set of values without first being free'd.

Additionally, there was another missed free from an early return a bit
later in the same function.

Pull Request: https://projects.blender.org/blender/blender/pulls/128229
2024-09-27 19:21:11 +02:00
Jesse Yurkovich
04c5044e61 Fix: Hydra "Object" texture coordinates incorrectly set to "World"
Found by inspection but looks like a simple oversight.

Example images in PR.
Pull Request: https://projects.blender.org/blender/blender/pulls/128223
2024-09-27 19:20:25 +02:00
Bastien Montagne
a9fa3657a6 Fix (unreported) link/append code adding full ID names in some cases.
This code handles ID types separately, so id names should not contain
the ID code prefix.
2024-09-27 19:06:55 +02:00