Commit Graph

3492 Commits

Author SHA1 Message Date
Campbell Barton
fb94028d10 Merge branch 'blender-v4.2-release' 2024-06-27 21:26:21 +10:00
Campbell Barton
42e1239ba8 Core: support restricting the types an XML preset may load
Prevent potential problems from untrusted XML (typically themes)
traversing into data outside the intended targets.

From what I can tell it's not currently possible but changes to RNA
could allow for this which would likely go by unnoticed.

Further details in code-comments.
2024-06-27 21:21:07 +10:00
Campbell Barton
65d0f365a9 Cleanup: correct misleading name of internal function 2024-06-27 21:01:15 +10:00
Sergey Sharybin
cb9060ede6 Merge branch 'blender-v4.2-release' 2024-06-27 12:48:26 +02:00
Dalai Felinto
c6e452d865 UI: Extensions: Add a separator between Install and the "⌄" button
It was too easy to click on Install by mistake, while trying to click on
the "⌄" menu. This is particulary problematic since we enable add-ons by
default.

Co-authored by: Pablo Vazquez, based on (informal) report by Campbell Barton.
2024-06-27 12:06:53 +02:00
Philipp Oeser
77f874ae1d Fix #123782: Asset Browser does not show tags for active asset
Caused by a6ed013baa

Tags live on the `AssetMetaData` of an `AssetRepresentation` (so
`metadata` in py),
`asset_data`(also pointing to `AssetMetaData`) is a member of
`FileSelectEntry` only [which the above commit tried to get rid off...]

Pull Request: https://projects.blender.org/blender/blender/pulls/123818
2024-06-27 10:57:33 +02:00
Campbell Barton
f43cf39689 Merge branch 'blender-v4.2-release' 2024-06-27 14:43:39 +10:00
Campbell Barton
989de85cf6 Extensions: fixed & refactor internals for extension visibility
Add utility class to check extension visibility to remove
incomplete logic that was duplicated into operator code.
Also minor refactoring to reduce the number of arguments passed
to internal function.s
2024-06-27 14:33:47 +10:00
Sean Kim
9d4d1aea98 Sculpt: Add stroke stabilization to lasso tools
This PR adds stroke stabilization settings for the Sculpt mode lasso
tools:
* Mask
* Hide
* Trim
* Face Set

Only Sculpt tools have a user facing change, even though this was
implemented in `WM_gesture_lasso_modal` and related methods. Other
modes may choose to add these settings and toggles.

## Implementation
The implemented functionality is similar to the Annotate tool in both
interpolation of the new point and drawing the UI hint that
stabilization is happening.

The `radius` and `factor` properties have similar bounds as the same
Brush properties. All values are stored on a per-operator level, not on
a scene or otherwise global tool level.

Based off of [1].

[1] - https://blender.community/c/rightclickselect/ZWG5/

Pull Request: https://projects.blender.org/blender/blender/pulls/122062
2024-06-27 01:32:09 +02:00
Bastien Montagne
f6358f6e71 Merge branch 'blender-v4.2-release' 2024-06-26 19:28:22 +02:00
Damien Picard
f739d4832e I18n: Extract and disambiguate a few messages
Disambiguate
- "Thickness": use "Material" for EEVEE's thickness material setting.
- "Generated": use "Texture" for texture coordinates, "Image" for
  image source, keep default context for animation keyframe types.

Translate
- Split "Online access required to (check for|install) updates..."
  into 2x2 messages individually translatable.
- "Geometry" input in bake node.
- "New" for the Palette ID: extract it as part of the
   BLT_I18N_MSGID_MULTI_CTXT for "New".

Some issues reported by Gabriel Gazzán and Satoshi Yamasaki.

Pull Request: https://projects.blender.org/blender/blender/pulls/123404
2024-06-26 19:25:22 +02:00
Campbell Barton
e8f5cc2dc2 Merge branch 'blender-v4.2-release' 2024-06-27 00:01:41 +10:00
Campbell Barton
99fcbf877d Extensions: Remove "Enabled" section, use sorting instead
This changes the sorting for the installed extensions.
- Update.
- Enable.
- A-Z.

Don't use A-Z for "Available" extensions to prevent name manipulation
to bring an extension up on the ranks.

Match the design of !123728, rewritten to support sorting across
multiple repositories and update tags which weren't handled in the PR.

Details:

- Remove the "Filter" popover & the option "Updates Available"
  since updates are now shown first.
- Add an iterator to for visible extensions to de-duplicate logic which
  was copied for code that scanned for tags.
- Split out logic for drawing an extension into it's own function.
- Tags are now calculated based on visible extensions limited by search.
2024-06-26 23:59:58 +10:00
Pratik Borhade
e9291548d3 Merge branch 'blender-v4.2-release' 2024-06-26 17:04:14 +05:30
Pratik Borhade
1dd017ac62 Fix #123228: GPU subdivision setting can be adjusted on an unsupported device
GPU subdivision is only supported on OpenGL backend. Exclude this
property for metal backend then.

Pull Request: https://projects.blender.org/blender/blender/pulls/123313
2024-06-26 13:31:37 +02:00
Pratik Borhade
5dbb769c08 Fix #123617: Scrollbar barely visible in light theme
Change default `item` value in light theme that controls the scrollbar
color.

Pull Request: https://projects.blender.org/blender/blender/pulls/123720
2024-06-26 13:28:49 +02:00
Campbell Barton
66e422f33d Merge branch 'blender-v4.2-release' 2024-06-26 14:27:40 +10:00
Campbell Barton
96906536db Extensions: add a Python API for user editable extension directories
Provide a convenient way to access a writable directory for extensions.
This will typically be accessed via:

  bpy.utils.extension_path_user(__package__, create=True)

This API is provided as some extensions on extensions.blender.org
are writing into the extensions own directory which is error prone:

- The extensions own directory is removed when upgrading.
- Users may not have write access to the extensions directory,
  especially with "System" repositories which may be on shared network
  drives for example.

These directories are only removed when:

- Uninstalling the extension.
- Removing the repository and its files.
2024-06-26 14:23:17 +10:00
Richard Antalik
d16aa62529 Merge branch 'blender-v4.2-release' 2024-06-26 06:12:39 +02:00
Richard Antalik
2075174496 Fix #120370: Fades don't work well with scene strips
Recently, `volume` property has been added to scene strips. This causes
only volume property to be animated when adding fades with `fades_add`
operator.

Add fades to volume and opacity properties if these are available.

Pull Request: https://projects.blender.org/blender/blender/pulls/123236
2024-06-26 06:04:50 +02:00
Nika Kutsniashvili
b933d6e1c7 Fix #123586: Sequencer: Box select in Preview doesn't work after selecting it in the menu
select_box operator needs different context in preview and sequencer
regions. It wasn't specified, so it defaulted to sequencer context and
wasn't working in preview.

This PR sets poll for region and sets correct context for preview. This
also means shortcut appears on menu item in preview now.

Pull Request: https://projects.blender.org/blender/blender/pulls/123757
2024-06-26 05:54:28 +02:00
Falk David
c5e7498f89 GPv3: Draw Tool: Random Rotation
This was previously named `UV` in the UI.
Now renamed to the more appropriate `Rotation` since
it controls the random rotation of the texture on
each stroke point.

Otherwise implements the same functionality as GPv2.

Pull Request: https://projects.blender.org/blender/blender/pulls/123741
2024-06-25 19:21:13 +02:00
Campbell Barton
54456d27c9 Merge branch 'blender-v4.2-release' 2024-06-26 00:33:03 +10:00
Campbell Barton
6456210d30 Merge branch 'blender-v4.2-release' 2024-06-26 00:33:01 +10:00
Campbell Barton
a8d6047e6e Merge branch 'blender-v4.2-release' 2024-06-26 00:32:56 +10:00
Campbell Barton
fcba8b8099 Fix #123710: Remote repo re-used when installing from file selector
Functionality from [0] to skip-saving remote repositories was only
applied when dropping extensions. Now this is done when installing
from the file selector too.

[0]: 9b7f2c9976
2024-06-26 00:32:00 +10:00
Campbell Barton
17951d12ed Cleanup: correct staticmethod, remove unused imports & formatting 2024-06-26 00:31:59 +10:00
Campbell Barton
69b22f73c2 Revert "UI: Extensions: Remove "Enabled" section, use sorting instead"
This reverts commit 90dc001a56.

This doesn't work with more than one repository and left in incorrect
tags calculations.
2024-06-26 00:14:20 +10:00
Dalai Felinto
5bf5322c3f Merge remote-tracking branch 'origin/blender-v4.2-release' 2024-06-25 16:05:44 +02:00
Dalai Felinto
36060eda49 UI: Extensions: Show the correct URL icon for extension links
Right now it only shows the HELP icon if it is a legacy add-on.

Pull Request: https://projects.blender.org/blender/blender/pulls/123730
2024-06-25 16:04:46 +02:00
Dalai Felinto
90dc001a56 UI: Extensions: Remove "Enabled" section, use sorting instead
This changes the sorting for the installed extensions.
* Update
* Enable
* A-Z

We don't use A-Z for the Available one to prevent name manipulation to
bring an extension up on the ranks.

Pull Request: https://projects.blender.org/blender/blender/pulls/123728
2024-06-25 16:04:20 +02:00
Miguel Pozo
b855cd7bb0 Merge branch 'blender-v4.2-release' 2024-06-25 15:57:11 +02:00
Dalai Felinto
b1dfdca392 UI: Extensions: Fix Extension tagline not disabled when it should
The extension tagline of disabled extensions was still showing fully
enabled (white text).
2024-06-25 15:46:21 +02:00
Omar Emara
f1134ce0b7 Merge branch 'blender-v4.2-release' 2024-06-25 16:40:44 +03:00
Dalai Felinto
dd7cc11796 Extensions: Link to visit the extensions platform 2024-06-25 15:13:50 +02:00
Dalai Felinto
92a2185a4e UI: Extensions: Use placeholder for extensions and add-ons search 2024-06-25 15:13:50 +02:00
Dalai Felinto
33a7cf8c49 Translations: blender.org should not be translatable 2024-06-25 15:13:50 +02:00
Campbell Barton
4fd39f4103 Merge branch 'blender-v4.2-release' 2024-06-25 23:05:20 +10:00
Campbell Barton
b5e0bff4ba Extensions: show the "Website" in the expanded details
This was moved to the menu from [0].

Add back to show this more prominently, resolves #123689.

[0]: c312f20627
2024-06-25 23:02:08 +10:00
Campbell Barton
b1d655d4f3 Merge branch 'blender-v4.2-release' 2024-06-25 22:52:11 +10:00
Campbell Barton
2783790bf2 Extensions: use the remote repositories URL for the add-ons "Website"
Override the website in the manifest with the website from the remote
repository data if it's available.

While this can be made to work it requires some awkward logic since it's
assumed an extensions meta-data is provided by the manifest with is
not the case when we start overriding it with values from elsewhere.

Resolves #123706.
2024-06-25 22:45:47 +10:00
Campbell Barton
220a66e54d Merge branch 'blender-v4.2-release' 2024-06-25 22:07:46 +10:00
Campbell Barton
7298df864c Fix error detecting outdated extensions in the UI
The "Update" button would never be shown in the extension header.

Own error in [0] caused the local version to compare with itself.

[0]: c312f20627
2024-06-25 22:05:51 +10:00
Campbell Barton
b2a049e77f Merge branch 'blender-v4.2-release' 2024-06-25 21:54:14 +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
Campbell Barton
f4c1f42cd2 Merge branch 'blender-v4.2-release' 2024-06-25 19:16:46 +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