Commit Graph

2017 Commits

Author SHA1 Message Date
Campbell Barton
0b14da7391 Merge branch 'blender-v4.2-release' 2024-06-24 12:36:39 +10:00
Campbell Barton
24be61b3d7 Merge branch 'blender-v4.2-release' 2024-06-24 12:36:36 +10:00
Campbell Barton
36cf7625a0 Merge branch 'blender-v4.2-release' 2024-06-24 12:36:33 +10:00
Campbell Barton
1917680622 Merge branch 'blender-v4.2-release' 2024-06-24 12:36:27 +10:00
Campbell Barton
25fc66f472 Extensions: use case insensitive sort for the repositories enum 2024-06-24 11:02:56 +10:00
Campbell Barton
ef1e538693 Extensions: prioritize the remote website over the local data
Add code-comments rationalizing use of remote/local fields.
2024-06-24 11:02:54 +10:00
Campbell Barton
efa1f5847e Extensions: don't attempt to sync after adding a repo in background mode 2024-06-24 11:02:52 +10:00
Campbell Barton
3ef073ed1d Cleanup: use variable to access extensions private directory 2024-06-24 11:02:46 +10:00
Campbell Barton
3b9081d093 Merge branch 'blender-v4.2-release' 2024-06-23 22:48:06 +10:00
Campbell Barton
b1287ad6d4 Cleanup: remove unused extensions.repo_add_from_drop operator 2024-06-23 22:47:06 +10:00
Campbell Barton
4d9398318c Merge branch 'blender-v4.2-release' 2024-06-23 22:42:41 +10:00
Campbell Barton
7298ed6c83 Extensions: don't lock the UI when syncing before handling a dropped URL
The sync with remote repositories would lock-up the interface with no
way to cancel. This could be a problem especially on slow connections.

The operator dialog is now shows the state of syncing which can
be canceled by pressing Escape or clicking away from the dialog.
2024-06-23 22:40:57 +10:00
Pratik Borhade
6c2ffc526c GPv3: Copy layers to selected operator
Port `GPENCIL_OT_layer_duplicate_object` operator to new structure.
New function created to duplicate layer and its frames. This could also
be used in duplicate_layer operator later.

Part of #110056

Pull Request: https://projects.blender.org/blender/blender/pulls/123366
2024-06-23 07:42:15 +02:00
Campbell Barton
732a246cc0 Merge branch 'blender-v4.2-release' 2024-06-23 14:50:09 +10:00
Campbell Barton
485a4dbf0f Extensions: order "System" repositories last
The default "System" repository which was ordered before "User Default",
order system repositories last as these are a special case many users
won't touch.
2024-06-23 14:43:31 +10:00
Campbell Barton
5ae871f39d Merge branch 'blender-v4.2-release' 2024-06-23 13:33:59 +10:00
Campbell Barton
84b1c50dc9 Extension: improve server-generate help text 2024-06-23 13:33:02 +10:00
Campbell Barton
278aa84218 Merge branch 'blender-v4.2-release' 2024-06-23 13:02:18 +10:00
Campbell Barton
09481fd40d Merge branch 'blender-v4.2-release' 2024-06-23 13:02:15 +10:00
Campbell Barton
c78adfc698 Extensions: use str.casefold for case insensitive search
`str.casefold` is intended for case insensitive string matching and
finds more matches with some unicode characters.
2024-06-23 12:57:08 +10:00
Campbell Barton
6019aa304b Extensions: Improve "server-generate" site, group by type, include links 2024-06-23 12:50:35 +10:00
Campbell Barton
8cfe25b90c Merge branch 'blender-v4.2-release' 2024-06-22 23:51:48 +10:00
Campbell Barton
f885b2267f Merge branch 'blender-v4.2-release' 2024-06-22 23:51:46 +10:00
Campbell Barton
cf73897690 Extensions: add HTML generation to the "server-generate" command
- Optionally generate a simple HTML page (using --html).
- Links include repository, blender_versnon_* & platform information,
  so the information can be used by blender when links are dropped
  into Blender.
- Support using a template as the default HTML is primitive.
2024-06-22 23:48:00 +10:00
Campbell Barton
fc3e0507cc Extensions: development functionality to mark all & clear marks
- Disable enabling on install when installing marked.
  This simplifies installing many packages from a repository which can
  be useful for testing.
- Fix an error installing marked when a local-only package was marked.
2024-06-22 23:03:52 +10:00
Campbell Barton
b32f3ae538 Merge branch 'blender-v4.2-release' 2024-06-22 19:22:14 +10:00
Campbell Barton
1ba06956e7 Extensions: support platform & version from URL parameters
Improve errors when dropping incompatible extensions, where previously
the extension would report as being unknown.
2024-06-22 19:13:45 +10:00
Campbell Barton
cebe845da9 Merge branch 'blender-v4.2-release' 2024-06-21 16:53:00 +10:00
Campbell Barton
9cd6520693 Merge branch 'blender-v4.2-release' 2024-06-21 16:52:58 +10:00
Campbell Barton
91d5a639dc Extensions: prevent install/upgrade while sync is in progress
When syncing in the background the UI could refresh immediately
before clicking making it possible for the user to install the wrong
extension. Since install also enables the extension, it meant it was
too easy to accidentally run untrusted code.

Disable install/upgrade while sync runs.

Also tweak text alignment and use round brackets for "(disabled)"
extensions.
2024-06-21 16:51:57 +10:00
Campbell Barton
72af4d0977 Cleanup: use a set to store enabled add-on module names
Was using a dictionary when the value was never used.
2024-06-21 16:03:11 +10:00
Campbell Barton
3b559fdf8a Merge branch 'blender-v4.2-release' 2024-06-21 15:44:26 +10:00
Campbell Barton
bd3c783139 Merge branch 'blender-v4.2-release' 2024-06-21 15:44:24 +10:00
Campbell Barton
5bad967d31 Merge branch 'blender-v4.2-release' 2024-06-21 15:44:21 +10:00
Campbell Barton
78a5ade1be Extensions: remove disabled UI logic 2024-06-21 15:42:11 +10:00
Campbell Barton
c312f20627 Extensions: add an extension menu for each extension
Use a per-extension menu so extra functionality can be accessed from
one place.

- The install/upgrade button remains top-level.
- "Uninstall" and "Visit Website" have been moved into the menu.
- Theme extensions can be set from the menu.
- Installed add-on extensions have a "View Details" menu item
  to switch to the add-ons view (useful to access preferences).

Based on design by Pablo & Dalai.

Co-authored-by: Pablo Vazquez <pablo@blender.org>
Co-authored-by: Dalai Felinto <dalai@blender.org>
2024-06-21 15:41:45 +10:00
Campbell Barton
91ba2e10ba Extensions: avoid duplicate "." for legacy add-on descriptions 2024-06-21 12:48:33 +10:00
Campbell Barton
bfd999401f Merge branch 'blender-v4.2-release' 2024-06-21 11:37:32 +10:00
Campbell Barton
38e25d7838 UI: tweaks to extension & addon items
- Use line separator over box instead of separate boxes.
- Format web-links with a label, then the button instead
  of positioning the buttons side-by-side.

Changes by Brecht with minor edits (see !123420).

Co-authored-by: Brecht Van Lommel <brecht@blender.org>
2024-06-21 11:34:10 +10:00
Campbell Barton
8b9cf02ce9 Merge branch 'blender-v4.2-release' 2024-06-21 10:53:08 +10:00
Campbell Barton
72ef03d5a1 Extensions: split add-ons & extensions into separate preferences
Add back the "Add-ons" preferences, removing add-on logic from
extensions.

- Add support for filtering add-ons by tags
  (separate from extension tags).
- Tags now respect the "Only Enabled" option.
- Remove the ability to enable/disable add-ons from extensions.
- Remove add-on preferences from extensions.
- Remove "Legacy" & "Core" prefix from add-on names.
- Remove "Show Legacy Add-ons" filtering option.

Implements design task #122735.

Details:

- Add-on names and descriptions are no longer translated,
  since it's impractical to translate text which is mostly
  maintained outside of Blender.
- Extensions names have a `[disabled]` suffix when disabled so it's
  possible to identify installed but disabled extensions.
- The add-on "type" is shown in the details,
  so it's possible to tell the difference between an extension,
  a core add-on & a legacy user add-on.
- Icons are also used to differentiate the add-on type.
- User add-on's must be uninstalled from the add-ons section
  (matching 4.1 behavior).
- Simplify logic for filtering tags, move into a function.
2024-06-21 10:42:53 +10:00
Harley Acheson
9c4e56e307 UI: Move Save Incremental Menu Item Down
Move "Save Incremental" down the File menu to the bottom of its
section.

Pull Request: https://projects.blender.org/blender/blender/pulls/123463
2024-06-20 18:14:04 +02:00
Brecht Van Lommel
1fe4279bba Fix: Missing description for Copy Global Transform add-on 2024-06-20 15:04:43 +02:00
Brecht Van Lommel
5a2053a8b6 Fix: Missing description for Copy Global Transform add-on 2024-06-20 14:25:04 +02:00
Campbell Barton
b78c0e6619 Merge branch 'blender-v4.2-release' 2024-06-20 22:03:36 +10:00
Campbell Barton
1eda5bca68 Fix error with all local extensions showing as orphan
Also correct wording in install-file help text.
2024-06-20 21:56:31 +10:00
Pratik Borhade
c49bbb978a Fix: GPv3: Assert opening overlay panel in sculpt mode
Assert is due to wrong bounds passed to `std::clamp`. There seems no
error in UI code, instead this occurs due to `layout.label()`. It
returns an error due to missing case of `SCULPT_GREASE_PENCIL`. Due to
the error, panel is not generated with properties and the `rect-> min/max`
remained short enough to trigger assert

Pull Request: https://projects.blender.org/blender/blender/pulls/123478
2024-06-20 13:32:39 +02:00
Campbell Barton
4326585c5b Merge branch 'blender-v4.2-release' 2024-06-20 17:12:48 +10:00
Campbell Barton
801e47f42a Extensions: support "Install from Disk" for remote repositories
When installing from disk, include remote repositories in the list.

- Works with drag & drop from file system.
- This is the only way to "downgrade" an extensions.
2024-06-20 17:10:01 +10:00
Campbell Barton
f89cb1ef77 Merge branch 'blender-v4.2-release' 2024-06-20 15:17:57 +10:00