Commit Graph

150077 Commits

Author SHA1 Message Date
Jeroen Bakker
8077411d59 Vulkan: Disable barriers when using render graph
Barriers should be automatically extracted from the render graph.
GPU_issue_barrier will become a no-op.
2024-06-03 13:48:56 +02:00
Jeroen Bakker
049d84d36d Vulkan: Texture view clearing
EEVEE-Next requires clearing texture views. This PR adds that.

Pull Request: https://projects.blender.org/blender/blender/pulls/122650
2024-06-03 13:47:15 +02:00
Bastien Montagne
f33159b380 Fix: Make data_blocks collection in modifiers' bake data non-overridable.
The current code does not support overriding this data, and it is
generated at runtime anyway.

This may have to be revisited later, but for the time being, be
consistent and do not try to generate override data for this.

Pull Request: https://projects.blender.org/blender/blender/pulls/122554
2024-06-03 13:45:07 +02:00
Bastien Montagne
e2f83dd267 LibOverride: Improve handling of invalid collection/pointer editing.
In most common cases, an Pointer or Collection rna property needs a
custom liboverride 'apply' callback, if it supports modifying or adding
data in liboverrides.

The main change in this commit is that diffing code won't generate
anymore operations that are not supported on such properties.

In addition, the check on such invalid operations at liboverride apply
time has been turned into a `CLOG_ERROR` message, instead of an assert.
This is both more visible (as it also prints in release builds), and
less critical (as it won't terminate blender execution).
2024-06-03 13:45:02 +02:00
Bastien Montagne
aa9599119a Cleanup: LibOverride: Do not assign default callbacks to RNA properties.
These default assignements have not actually been needed/useful since a
very long time already. It was likely a left-over from early stages of
the project. While not a problem so far, it makes it harder to
distinguish RNA properties whith a custom liboverride handling, from the
ones using the default code.

Keeping them to `nullptr` by default also makes these callbacks definition
behavior more in line with other RNA properties callbacks, which are
usually non-null only when a custom function is defined.

No behavioral changes are expected from this commit.
2024-06-03 13:45:02 +02:00
Campbell Barton
916268bed9 Fix #122645: Extensions tag popover empty until checking for updates 2024-06-03 21:02:33 +10:00
Campbell Barton
1839ec7d9c Extensions: support showing files included in the build sub-command
Add a verbose argument to list all files included in a package,
useful when checking paths are properly included.
2024-06-03 21:02:32 +10:00
Sybren A. Stüvel
543521a952 Anim: use smaller margin for Timeline / Dope Sheet / Graph Editor
The 'Frame All', 'Frame Selected', and 'Frame Scene/Preview Range'
operators will now use a smaller margin. It will use the smallest of two
sizes:

- A fixed size in UI-scaled pixels, or
- 10% of the available editor width.

Previously Blender always used the latter. This was considered too
large, especially when the editor was wide.

This also unifies the margin calculations for the graph editor, dope
sheet, and timeline. Earlier versions used smaller margins for the graph
editor than for the other editors, but this is no longer necessary.

Pull Request: https://projects.blender.org/blender/blender/pulls/122320
2024-06-03 12:26:04 +02:00
Bartosz Kosiorek
e97d46e5b0 UI: Add tooltips to Physics and Subdivide modifiers
Pull Request: https://projects.blender.org/blender/blender/pulls/121346
2024-06-03 12:09:57 +02:00
Falk David
1334d64780 Refactor: GPv3: Move stroke operation construction to stroke_update_step
Previously, the stroke operations were created in the `stroke_test_start`
callback function. This causes a few issues:
* Each mode had it's own `test_start` function and it's own function
  to create the stroke operations.
* Only the mouse position was available for the start sample.

With this change, the `stroke_test_start` function now does nothing.
Instead, the operations are created in the common `stroke_update_step`
function using `get_stroke_operation` the first time it's called.
This also means that the start sample is populated with the correct
start pressure.

Pull Request: https://projects.blender.org/blender/blender/pulls/122555
2024-06-03 11:50:03 +02:00
Nikita Sirgienko
e0ecf443d4 Cycles: Fix compile error in 1465076a0a 2024-06-03 11:33:28 +02:00
Jeroen Bakker
ac4ab3a209 Vulkan: Debug name for staging buffer
Staging buffers didn't had a name this PR adds a name so they
are easier to track in debug tools.

Pull Request: https://projects.blender.org/blender/blender/pulls/122649
2024-06-03 11:14:27 +02:00
Nikita Sirgienko
6d87a5d9ed Cleanup: Cycles: Fix type in the OpenImageDenoise name.
There are no functional changes expected.
2024-06-03 11:11:20 +02:00
Nikita Sirgienko
1465076a0a Refactor: Cycles: Unify error reporting code from denoiser's classes
There are no functional changes expected.
2024-06-03 11:11:19 +02:00
Nikita Sirgienko
cb8d2bf4ad Fix: Cycles: Add missing queue init in run_film_convert_kernels 2024-06-03 11:11:19 +02:00
Jeroen Bakker
abcf55d15a Vulkan: Only support device vertex buffers
BLF font rendering isn't compatible with render graph as it
rewrites buffers that are not yet drawn. To work around this issue
the vertex buffers should always be created on device and not
directly altered by CPU code.

Pull Request: https://projects.blender.org/blender/blender/pulls/122648
2024-06-03 10:58:27 +02:00
Omar Emara
a162149cfa Fix #121761: Crash when compositing while rendering
Blender crashes when the interactive GPU compositor is running in a node
editor while rendering. This is because the GPU compositor is sharing
the same GPU context used for rendering, which is not allowed. To fix
this, we use a dedicated render list for interactive compositing, to use
its dedicated GPU context.

This is implemented by keeping another render list for the purpose of
compositing and similarly clearing its context when it is no longer
needed.

Pull Request: https://projects.blender.org/blender/blender/pulls/122472
2024-06-03 09:56:58 +02:00
Bastien Montagne
e1c8baf046 I18N: Updated UI translations from git/weblate repository (bfcffce0a4d1e1). 2024-06-03 09:38:03 +02:00
Philipp Oeser
ba3fac92af Fix #122598: Curves Grow brush broken on curves with only two points
Code was getting a direction (to grow in) from the last point in a curve
and another point in the middle of the curve.
On a curve with only two points, these points were the same, resulting
in a zero delta and thus doing nothing.

To resolve, take the root point instead in this scenario to get a valid
direction.

Pull Request: https://projects.blender.org/blender/blender/pulls/122644
2024-06-03 09:20:07 +02:00
Jesse Yurkovich
5bc71c8704 Cleanup: style changes for newly added USD DomeLight support code
A variety of non-functional style changes for the recently added
DomeLight code:

- Remove unused includes and forward decls
- Changed NULL -> nullptr
- Use `motionSampleTime` name consistently
- Moved the `r_value` out parameter to the last position per our coding
  guidelines

Pull Request: https://projects.blender.org/blender/blender/pulls/122641
2024-06-03 04:41:39 +02:00
Hans Goudey
e2402eb4a9 Cleanup: Use C++ types, references for CCGElem access 2024-06-02 20:36:33 -04:00
Hans Goudey
d374b5abf7 Cleanup: Miscellaneous changes in BKE_ccg.hh
- Remove unnecessary declarations for inline functions
- Remove typedef keyword
- Use C++ casting instead of C-style casts
2024-06-02 20:36:33 -04:00
Hans Goudey
49b52b35d5 Cleanup: Move BKE_ccg.h to C++ 2024-06-02 20:36:33 -04:00
Jesse Yurkovich
05f8d35652 Fix #122606: fully map Blender's INT8 type to USD's UChar
While USD does not have a signed, 8-bit, integer type we can use its
UChar type instead.

Pull Request: https://projects.blender.org/blender/blender/pulls/122610
2024-06-02 22:26:12 +02:00
Iliya Katueshenock
81c5e42ec5 Cleanup: BLI: Support IndexMask as universe for mask complement
Pull Request: https://projects.blender.org/blender/blender/pulls/122616
2024-06-02 19:40:20 +02:00
Campbell Barton
4a117f3116 Extensions: add popover to filter by tags
Since the categories from add-ons are no longer shown all extensions
are shown together. Support filtering by tags as an alternative.
2024-06-02 23:25:49 +10:00
Campbell Barton
5e462135f3 Extensions: avoid redundant conversion the new manifest to bl_info
Converting the manifest TOML to the bl_info ran before checking
if the add-on was legacy.
2024-06-02 23:00:11 +10:00
Pratik Borhade
ab5f8d9f3a Fix #122491: DOF pick in context menu grayed out
Caused by 7f8d4df410
Changes in poll function had excluded the case of context menu button.
Fix this by returning true if operator identifier is `UI_OT_eyedropper_depth`

Pull Request: https://projects.blender.org/blender/blender/pulls/122532
2024-06-02 14:59:41 +02:00
Campbell Barton
f1bf9d366c Extensions: support canceling asynchronous operations
Pressing escape now passes `canceled` the finished action
(not currently used).
2024-06-02 21:49:44 +10:00
Campbell Barton
cfd199b7a2 Fix passing allocated strings to guarded-alloc 2024-06-02 20:39:06 +10:00
Campbell Barton
1aa5eddab3 Correct error in last commit
Correct flipped check in 96c4be169f.
2024-06-02 19:23:06 +10:00
Campbell Barton
96c4be169f Cleanup: minor changes relating to operator macros
- Consistent naming for wmOperatorTypeMacro variables.
- Reduced right-shift.
- Use boolean types.
2024-06-02 19:20:53 +10:00
Jesse Yurkovich
55a7e62f8a Cleanup: unused includes in source/blender/io/usd
Reduce dependence on Blender headers as much as possible and move closer
to an include-what-you-use setup.

- Removes unnecessary includes
- Replaces some includes with more appropriate, narrower, substitutes

Pull Request: https://projects.blender.org/blender/blender/pulls/122619
2024-06-02 04:46:02 +02:00
Jesse Yurkovich
dbc842b21e Fix #122582: Missing button assignment caused wrong precision to be used
The missing button assignment caused the previous button ("Z:") to have
its precision set to the incorrect value.

Pull Request: https://projects.blender.org/blender/blender/pulls/122583
2024-06-01 19:55:28 +02:00
Harley Acheson
30168752cf Fix #122590: Revert "Fix #122423: Fix Gizmo Map Crash after Area Join"
This reverts commit e48eacd672.

Pull Request: https://projects.blender.org/blender/blender/pulls/122604
2024-06-01 19:19:58 +02:00
Clément Foucault
46ace12a46 EEVEE-Next: Add base page tagging for punctual shadow
This avoid missing tiles artifacts during tracing or
filtering of shadow maps.

Fixing it for directionnal is a bit more complex and
will be done in another commit.

Fix #121618

Pull Request: https://projects.blender.org/blender/blender/pulls/122597
2024-06-01 17:29:38 +02:00
Hans Goudey
7e5f061851 Fix: Assert in mesh draw edit UV tris extraction
Caused by e916cd5d69.
2024-06-01 11:17:51 -04:00
Julien Duroure
c8d77efe27 glTF exporter: fix typo in a previous commit
Checking if mesh has vertex color was wrong
2024-06-01 16:56:53 +02:00
Julien Duroure
04b08bcb40 glTF exporter: Fix glTF vendor extensions declaration 2024-06-01 16:51:26 +02:00
Dalai Felinto
c9a99c7eeb Extensions: revised welcome message + behavior
Make it possible allow online access directly from the welcome screen.

Ref !122511
2024-06-01 23:17:11 +10:00
Clément Foucault
c0864e8d5f Fix: UI: Missing Texture panels in EEVEE-Next
Fix #122497
2024-06-01 15:14:47 +02:00
Clément Foucault
135377a54f Fix: EEVEE-Next: Wrong factor in pdf_to_lod 2024-06-01 15:04:17 +02:00
Campbell Barton
7b30f657a5 Fix memory leak on exit with tablet seat data on Wayland 2024-06-01 22:54:52 +10:00
Campbell Barton
b696d34928 UI: tweak legacy enum not to include trailing separator 2024-06-01 22:54:52 +10:00
Campbell Barton
42c4678707 Cleanup: quiet warnings from mypy & ruff 2024-06-01 22:54:52 +10:00
Hans Goudey
e686d1b38a Sculpt: Improve Set Pivot Position UI
- Don't show the "Mouse X" and "Mouse Y" properties in the redo panel
  for all the modes that don't use them.
- Use the recently added dynamic version of the "depends on cursor"
  setting to only wait for mouse click for the "cursor surface" mode.

Arguably these should be different operators anyway.
2024-06-01 08:45:36 -04:00
Julien Duroure
cab79018ee glTF exporter: Remove false positive warning 2024-06-01 10:05:43 +02:00
Campbell Barton
d002703484 PyAPI: fixes for defining operator macros
- Support passing in operator ID's using Python dot syntax.
- Support define operators that haven't yet been registered
  matching Blender's own behavior.

Also add doc-string for bpy.types.Macro.define.
2024-06-01 16:17:02 +10:00
Campbell Barton
a700fdc163 Fix class methods being excluded from the Python API docs
All class methods were excluded which makes sense for methods such
as poll, draw ... etc. however this would also exclude utility methods
that aren't associated with RNA classes.

The following methods for `bpy.types` classes are now included:

- Macro.define
- UI_UL_list.sort_items_by_name
- {Header/Menu/Panel/UIList}.{append/prepend/remove/is_extended}
2024-06-01 16:17:01 +10:00
Campbell Barton
90d513f7d3 Cleanup: improve checks for function types for RNA introspection
Function checks were too ambiguous making debugging difficult.
2024-06-01 16:08:56 +10:00