Commit Graph

3492 Commits

Author SHA1 Message Date
Campbell Barton
b10d7f1290 Merge branch 'blender-v4.2-release' 2024-06-25 19:16:36 +10:00
Campbell Barton
00d3e19296 Extensions: defer imports to reduce overhead on startup 2024-06-25 19:13:11 +10: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
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
Pratik Borhade
bba375c785 GPv3: Sculpt Advanced panel is displayed empty
Only smooth and randomize brush has properties in advanced panel. For
others, panel is empty. Include condition in poll function to skip
drawing of "advanced" panel for rest brushes

Resolves #123536

Pull Request: https://projects.blender.org/blender/blender/pulls/123549
2024-06-24 13:54:54 +02:00
YimingWu
8c647e7108 Fix #123396: GPencil: Show brush options for GPv3
Some brush options aren't shown in GPv3. Now fixed.

Pull Request: https://projects.blender.org/blender/blender/pulls/123412
2024-06-24 13:47:02 +02:00
Campbell Barton
830fb50c0a Merge branch 'blender-v4.2-release' 2024-06-24 21:41:26 +10:00
Campbell Barton
7a0f205b89 Fix #123657: setting the theme manually breaks the Extension UI
Calling os.path.samefile on a repository directory that didn't exist
was raising an exception. Resolve by comparing the directories as
strings, see code comments for details.
2024-06-24 21:39:35 +10:00
Campbell Barton
9cb45ba6c3 Merge branch 'blender-v4.2-release' 2024-06-24 12:36:49 +10:00
Campbell Barton
99a871d2f3 Merge branch 'blender-v4.2-release' 2024-06-24 12:36:46 +10:00
Campbell Barton
213a968e05 Merge branch 'blender-v4.2-release' 2024-06-24 12:36:42 +10:00
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
d8fafad704 Extensions: clarify installing multiple files is supported 2024-06-24 12:27:22 +10:00
Campbell Barton
2eaf70a4ed Extensions: adjust the error about failure to sync when offline
- Suppress the warning entirely when the "first time" message
  requesting online access is shown as it adds unnecessary noise.

- Otherwise, when offline, show a message suggesting to allow online
  access or disable the repository.
2024-06-24 12:24:32 +10:00
Campbell Barton
9b7f2c9976 Extensions: don't reuse the last remote repository when dropping files
Installing a file into a remote repository is an exceptional case,
don't default to the remote repository when dropping afterwards.
2024-06-24 11:25:38 +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