Commit Graph

138068 Commits

Author SHA1 Message Date
Falk David
5685ec5952 GPv3: Draw Tool: Use brush strength for fill opacity
Makes sure the the brush strength is used to write to
the fill opacity.

The conditions for what attribute to skip when copying
previous data from the curves geometry was getting a bit
complicated so this part got refactored.
2024-06-25 14:02:38 +02:00
Campbell Barton
b2a049e77f Merge branch 'blender-v4.2-release' 2024-06-25 21:54:14 +10:00
Campbell Barton
4915e6dc83 Merge branch 'blender-v4.2-release' 2024-06-25 21:54:09 +10:00
Campbell Barton
696c997d72 Extensions: split extensions by category Enabled/Installed/Available
Each section (if not empty) now shows a panel header.
Now there is no need to include "installed/disabled" text next to each
extension. This also removes the need for most of the filtering options.

See design task #123660.
2024-06-25 21:53:04 +10:00
Thomas Dinges
56fdfe5793 Fix typo in VSE / Movieclip strip type. 2024-06-25 12:37:43 +02:00
Falk David
d29d410a2f GPv3: Draw Tool: Show "Cursor" menu
Show the "Cursor" menu in the view3d header an side panel.
2024-06-25 12:14:15 +02:00
Falk David
88387e3a82 GPv3: Draw Tool: Randomize radius and opacity
This adds the randomization options for radius and opacity (strength).

Instead of pure white noise (like in GPv2) this uses perlin noise to make
the effect less jagged. The scale of the noise (in screen space) is
hardcoded to roughly fit GPv2. It could be exposed as a setting in the
future to get noise that changes slower/faster along the stroke.

Pull Request: https://projects.blender.org/blender/blender/pulls/123715
2024-06-25 12:13:21 +02:00
Jeroen Bakker
fa39948602 Fix #123583: Facesets not visible in EEVEE
Facesets overlay used a depth equal test, which isn't supported by
EEVEE.

Pull Request: https://projects.blender.org/blender/blender/pulls/123714
2024-06-25 11:17:19 +02:00
Campbell Barton
f4c1f42cd2 Merge branch 'blender-v4.2-release' 2024-06-25 19:16:46 +10:00
Campbell Barton
6a4a56f067 Merge branch 'blender-v4.2-release' 2024-06-25 19:16:44 +10:00
Campbell Barton
2da9e89523 Merge branch 'blender-v4.2-release' 2024-06-25 19:16:41 +10:00
Campbell Barton
b038442b32 Merge branch 'blender-v4.2-release' 2024-06-25 19:16:38 +10:00
Campbell Barton
b10d7f1290 Merge branch 'blender-v4.2-release' 2024-06-25 19:16:36 +10:00
Campbell Barton
a142a7a538 Merge branch 'blender-v4.2-release' 2024-06-25 19:16:33 +10:00
Campbell Barton
00d3e19296 Extensions: defer imports to reduce overhead on startup 2024-06-25 19:13:11 +10:00
Jeroen Bakker
78f37fe331 Vulkan: Fix incorrect image aspect
When clearing only the depth of a depth/stencil only the depth
part of the image aspect was stored in the node. This is invalid
when the image needed to be transitioned.

Pull Request: https://projects.blender.org/blender/blender/pulls/123713
2024-06-25 11:05:24 +02:00
Jeroen Bakker
f5b173188e Vulkan: Fix incorrect read image barrier
When having a sequential read image barriers for the same resource
and the second one requires an image layout transition the incorrect
barriers where generated.

This was fixed by aligning the implementation with write image barriers.

Pull Request: https://projects.blender.org/blender/blender/pulls/123712
2024-06-25 11:05:07 +02:00
Jeroen Bakker
50bda25f10 Cleanup: make format 2024-06-25 11:00:17 +02:00
Damien Picard
fab15384a4 I18n: Node Wrangler: Use proper translation contexts in the UI
Many operator buttons in Node Wrangler used custom texts defined
elsewhere, but the translation context in this case is "Operator". It
should be using "Default" instead.

Attribute nodes in the shader editor should never be translated
because their name is user data.

Some button labels were switched to title case.

"Dodge" and "Burn" were renamed to "Color Dodge" and "Color Burn"
respectively, to match the item name from the actual node.

The "Frame Selected" operator now uses Node translation context, to
distinguish from the other operator of the same name which means
"Place selected in view".

Pull Request: https://projects.blender.org/blender/blender/pulls/123403
2024-06-25 10:36:44 +02:00
Damien Picard
dba5a393ca I18n: Node Wrangler: translate operator reports using rpt_()
Operator reports that use string formatting need explicit rpt_() tags,
otherwise translation occurs after formatting and the string is not
found in the translation files.
2024-06-25 10:36:43 +02:00
Damien Picard
db6d05537c UI: Node Wrangler: Fix message case and grammar
- Reuse menus' bl_label in UI code when identical.
- Switch labels to title case.
- Switch descriptions to sentence case.
- Do not end sentences with "." in reports.
- Replace "Can't" with "Cannot" and "Don't" with "Do Not".
2024-06-25 10:36:43 +02:00
Christoph Lendenfeld
34dcfb365b Fix #88208: Multi user action missing depsgraph update
The issue was a missing Dependency Graph update tag.
That usually happened in `ANIM_list_elem_update/59` but only if the action is still linked
to the `AnimData`. That isn't the case when all keys get deleted because the action is unlinked
in `animdata_fcurve_delete` if the action is empty.

Pull Request: https://projects.blender.org/blender/blender/pulls/123553
2024-06-25 09:45:12 +02:00
Campbell Barton
47b2e9a857 Merge branch 'blender-v4.2-release' 2024-06-25 16:41:10 +10:00
Campbell Barton
d4bdc4f7a2 Merge branch 'blender-v4.2-release' 2024-06-25 16:41:03 +10:00
Campbell Barton
0c580d075b Fix #123676: error printed when installing extensions from disk
Scanning local repositories was printing an error when the local
directory of other repositories didn't exist.

Caused by the logic that ensures wheel's are updated which needs to
check meta-data for all repositories after an update.

Resolve by optionally skipping errors for missing directories.
2024-06-25 16:35:10 +10:00
Campbell Barton
5b5e869307 Extensions: skip reading remote meta-data when accessing local meta-data
This isn't required and could cause error messages when accessing
local data before synchronizing with a remote repo, see #123676.
2024-06-25 16:31:07 +10:00
Campbell Barton
4e2cff5df7 Merge branch 'blender-v4.2-release' 2024-06-25 15:56:07 +10:00
Campbell Barton
02b2f75da7 Merge branch 'blender-v4.2-release' 2024-06-25 15:56:03 +10:00
Campbell Barton
6fe666f773 Merge branch 'blender-v4.2-release' 2024-06-25 15:56:00 +10:00
Campbell Barton
6b6341f9a7 Extensions: suppress repository access errors while synchronizing
Suppress errors so enabling extensions for the first time doesn't
show a repository access error while the data is being downloaded.
2024-06-25 15:53:31 +10:00
Campbell Barton
3834e296a3 Extensions: de-duplicate redundant synchronization requests
Since changing RNA values now trigger synchronizing with remote
repositories (which can be slow), it was possible to accumulate
notification requests to the same repository which would re-download
the remote data on each button press.

Skip notifications which have been superseded by newer requests.
2024-06-25 15:53:30 +10:00
Campbell Barton
4712aca2a8 Fix #123682: extension repo URL/access token changes don't re-sync
When changing the URL or access token, re-synchronize remote data
automatically.

This changes automatic synchronization to use a background task that
runs based on a timer instead of a modal operator since the operator
is more intrusive and not so well suited to running based on changes
to RNA.
2024-06-25 15:52:04 +10:00
Sean Kim
d863785775 Merge branch 'blender-v4.2-release' 2024-06-24 13:58:36 -07:00
Sean Kim
2cc6de8f7e Fix #123574: Automask area normal causes garbled meshes
Pull Request: https://projects.blender.org/blender/blender/pulls/123697
2024-06-24 22:57:09 +02:00
Hans Goudey
4919b5681d Merge branch 'blender-v4.2-release' 2024-06-24 15:39:02 -04:00
Hans Goudey
1b80125a67 Fix: Leak of initialized but not pushed undo step
In some cases, sculpt code currently creates undo steps that are stored
in `step_init` in the undo stack, but then skips actually pushing them.
That can happen when an operator is cancelled (like the transform
operator in #123172) or because pushes in "nested operator calls"
are currently explicitly disabled. That happens when calling the brush
operator from a script.

It turns out the undo code never freed the `step_init`, probably because
it assumed it would be pushed to be part of the stack afterwards.

Personally I'm not convinced that separating undo step creation into
two stages with `step_encode_init` and `step_encode` is a great design
or a necessary one, but I'm trying not to get into that deeper right now.

Fixes #123172

Pull Request: https://projects.blender.org/blender/blender/pulls/123331
2024-06-24 21:38:21 +02:00
Hans Goudey
59d84a4c42 Fix: Sculpt: Various issues with undo
Fixes #123612, #123611, #123621

Continue the restructuring in previous commits in this area to avoid
repeating more work for every node. The commit is large for a bug fix
but the best way to fix the issues was to continue making the area more
generally sane. Some specific changes:
- Run the switch for undo type outside of the iteration over nodes.
- Further split multires and base mesh undo so they don't go through
  the same per-node functions.
- Replace the node-tagging mechanism with specific loops per undo type.
- Properly assign the step type when pushing a single node at a time.
2024-06-24 14:32:12 -04:00
Ray Molenkamp
a5fc69ede5 Merge remote-tracking branch 'origin/blender-v4.2-release' 2024-06-24 12:16:28 -06:00
Ray Molenkamp
68b85d1e68 Windows_X64: OIIO rebuild with upstream PR 4302
Fixes PSD loading.
2024-06-24 12:15:56 -06:00
Ray Molenkamp
b7277f5f96 Merge remote-tracking branch 'origin/blender-v4.2-release' 2024-06-24 12:10:34 -06:00
Ray Molenkamp
8082d92273 deps: oiio include upstream PR 4302
this fixes import issues with PSD files
2024-06-24 12:09:02 -06:00
Brecht Van Lommel
0f63085d9d Merge branch 'blender-v4.2-release' 2024-06-24 20:02:59 +02:00
Brecht Van Lommel
1ea70c3e3e Fix: macOS x265 libraries have wrong deployment target
Pull Request: https://projects.blender.org/blender/blender/pulls/123694
2024-06-24 20:02:20 +02:00
Clément Foucault
0b7ae0c75a EEVEE: Reduce binary size on Mesa caused by fixed size arrays
For some reasons this reduce the binary size from 11MB for
the 3 shaders to less than 1MB.
2024-06-24 19:31:33 +02:00
Bastien Montagne
65c5721c5a Fix (unreported): MEM_new/MEM_freeN mistaches.
Calling `MEM_freeN` on data allocated with `MEM_new` is bad, since it
will not call a destructor matching the one invoked as part of
`MEM_new`.

While in practice cases fixed below were 'not a problem' currently, as
they are trivial Cpp types (and therefore their destructor is doing
nothing), `MEM_freeN` has no way to ensure it is dealing with such a
trivial data type, so allowing such mismatch is dirty and dangerous.

Note that almost all fixed cases look more like unintentional mistakes
(mis-usages of `MEM_new` instead of `MEM_cnew`).

NOTE: There is one more (known!) case in the asset code, which fix is
slightly less trivial, and will go through a separate PR.

NOTE: This is a by-product of some work to detect such invalid usages of
`MEM_freeN` on memory chunks allocated with `MEM_new`.

Pull Request: https://projects.blender.org/blender/blender/pulls/123691
2024-06-24 18:42:26 +02:00
Miguel Pozo
62293d76bb Merge branch 'blender-v4.2-release' 2024-06-24 18:35:52 +02:00
Sean Kim
e140f263d0 Fix #122856: Sculpt trim and filter tools do not show brush cursor
This commit adds a new poll function specifically for determining if the
sculpt cursor should be drawn. This function whitelists a hardcoded set
of non-brush operators to display the cursor for.

In testing, this extra check has negligable performance impact. On
average it takes 0.012ms per execution.

Pull Request: https://projects.blender.org/blender/blender/pulls/123570
2024-06-24 18:33:49 +02:00
Miguel Pozo
d88150ce1f Fix: GPU: Skip binaries larger than the shared memory 2024-06-24 18:33:05 +02:00
Damien Picard
65de0db503 I18n: translate mouse and NDOF events in the keymap preferences
Mouse and NDOF events are defined in enums that are never used
directly by RNA through RNA_def_property_enum_items. As a result, they
don't get automatically extracted to the translation files and need to
be manually, through N_() macros.

The translation context used is the same as in other places related to
KeyMapItem: "UI_Events_KeyMaps".

Pull Request: https://projects.blender.org/blender/blender/pulls/116390
2024-06-24 18:10:39 +02:00
Ray Molenkamp
df76e76cda Windows: OIDN 2.3.0 2024-06-24 10:05:59 -06:00