Commit Graph

732 Commits

Author SHA1 Message Date
Clément Foucault a09d85cb2a EEVEE-Next: Make the shading lighting panel accessible 2023-10-06 17:51:37 +02:00
Lukas Tönne 642ad4110b Merge branch 'blender-v4.0-release' 2023-10-06 14:34:08 +02:00
Lukas Tönne dd9c906840 Fix #113134: Use a valid socket in node groups for custom nodes
Custom node trees may not suppor the default NodeSocketFloat socket
type. In case this default type is not supported, search all registered
socket types and pick the first one that is supported by the custom
node tree.

Pull Request: https://projects.blender.org/blender/blender/pulls/113330
2023-10-06 14:33:35 +02:00
Jacques Lucke ac4fa638c1 Merge branch 'blender-v4.0-release' 2023-10-06 14:00:54 +02:00
Christoph Lendenfeld d85e7f4577 Fix #87160: Clean Keyframes only works if channels are selected
The issue was that the code filtered for selected channels,
while the expectation was that it would only filter for selected keys.

This PR changes the behavior of the operator in the following way:
* when "Clean Channels" is **disabled**, it will clean only selected keyframes, regardless of the channel selection
* when "Clean Channels" is **enabled**, it will clean selected channels regardless of keyframe selection

The same logic was applied to the Graph Editor code.
It only makes a difference in the case when "Clean Channels" is enabled.
That is because channels were automatically selected when a key was selected.

In addition to that I moved the menu entry for "Clean Channels" to the channel menu
to reduce confusion.

Another solution would have been to make the Dope Sheet select channels
when keys are selected. This might still be done in the future, but I think the
only correct fix is to change the actual operator behavior.

Pull Request: https://projects.blender.org/blender/blender/pulls/113335
2023-10-06 13:51:04 +02:00
Falk David 7e87435cf4 GPv3: Initial drawing tool
This PR implements an initial drawing tool that can already be used for testing.
While this is not fully feature complete (compared to the current grease pencil draw tool) the following is already implemented:

* Pressure support for radius and opacity.
* Material color and vertex color support.
* New active smoothing algorithm based on curve fitting.
* Simplify algorithm as a post-process step.

Some deliberate limitations include:
* The drawing plane is always the front plane. Drawing on surfaces is also not supported.
*

The current approach has not been optimized for performance yet. The goal was to have a straightforward implementation
first and then focus on performance later.

There are numerous parameters in the code that are hard-coded for now. These should be exposed at some point, potentially as user settings.

Pull Request: https://projects.blender.org/blender/blender/pulls/110093
2023-10-06 10:49:54 +02:00
Julian Eisel d958874f01 Merge remote-tracking branch 'origin/blender-v4.0-release' 2023-10-05 16:52:43 +02:00
Julian Eisel 060634e611 UI: Remove empty space in tool settings header with toolbar visible
So far, when the toolbar was visible, the tool settings header would show empty
space instead of the tool icon. This was probably to avoid jumping of the
layout. However this empty space looks quite jarring, and alignments in that
corner are all over the place with it (causing visual noise). On the other hand
the jumping seems like a minor problem, it's quite subtle, esp since the
viewport overlay text does a similar jump. Having the icon appear and disappear
based on the toolbar visibility also causes visual distraction, so the problem
was mitigated at best.

Pull Request: https://projects.blender.org/blender/blender/pulls/112972
2023-10-05 16:51:10 +02:00
Sybren A. Stüvel 0e420ea7ba Merge remote-tracking branch 'origin/blender-v4.0-release' 2023-10-05 14:36:46 +02:00
Sybren A. Stüvel 72542321b0 Anim: change label "Edit Bone Color" to "Bone Color"
This was already done for pose mode (26fbeef755), and it's now consistent
in armature edit mode as well.
2023-10-05 14:33:14 +02:00
Sybren A. Stüvel cf591606d1 Anim: change "Sync to Selected" to "Copy Colors to Selected"
"Sync" may imply that things are kept synchronous, while the operator
only performs a one-time copy. The new name & identifier reflect this
better.
2023-10-05 14:32:10 +02:00
bonj 355a30c106 Custom Properties: Add extra subtypes for float array
Add most remaining float subtypes for arrays in the custom property
edit operator.

Pull Request: https://projects.blender.org/blender/blender/pulls/112583
2023-10-05 09:43:33 +02:00
Campbell Barton 05dd67688a Merge branch 'blender-v4.0-release' 2023-10-05 13:58:42 +11:00
Campbell Barton 6bd57e1f1f Cleanup: use static set for contains checks
Also replace contains check with equality for a single item.
2023-10-05 13:53:20 +11:00
Campbell Barton ed7b7c2cde Merge branch 'blender-v4.0-release' 2023-10-05 13:16:23 +11:00
Campbell Barton 5e7fd352c9 Merge branch 'blender-v4.0-release' 2023-10-05 13:16:18 +11:00
Campbell Barton 9d4dc5376c Fix #112377: Edit Source missing info in the status bar
Reports from the internal operator weren't forwarded to the Python
operator, they were printed in the console instead.

Resolve by moving the operator to C++, use a utility function
to launch the external editor instead of an operator.
2023-10-05 13:09:47 +11:00
Campbell Barton 385e73e30b Cleanup: defer import 2023-10-05 13:07:57 +11:00
Brecht Van Lommel 3bbd4294d9 Merge branch 'blender-v4.0-release' into main 2023-10-04 21:32:58 +02:00
Brecht Van Lommel 61f982f0d1 Cleanup: make format 2023-10-04 21:30:41 +02:00
Richard Antalik 5daefe30e7 Merge branch 'blender-v4.0-release' 2023-10-04 19:28:57 +02:00
Richard Antalik 1b59571f6b Fix VSE retiming usability issues
Rename Retime Strips -> Toggle Retiming Keys
Gray out items in retiming menu instead of hiding
Remove selection operators from retiming menu
Gray out items in select menu when retiming
Prevent selecting keys, if overlay is disabled
Add show retiming keys toggle to sidebar time panel

ref https://projects.blender.org/blender/blender/issues/112343

Pull Request: https://projects.blender.org/blender/blender/pulls/113211
2023-10-04 19:27:28 +02:00
Jacques Lucke 5ad9c135e4 Cleanup: deduplicate uilist layout code for zone socket items 2023-10-04 15:40:57 +02:00
Jacques Lucke 29da7608ca Geometry Nodes: deduplicate zone socket item operators in Python
No user visible changes are expected.
2023-10-04 15:38:38 +02:00
Campbell Barton 44ec73e24e Merge branch 'blender-v4.0-release' 2023-10-04 16:22:32 +11:00
Campbell Barton 9a75c29bf8 Fix #113206: add-on unregister() not called on exit
Own regression in [0] caused add-ons not to run the unregister function
on exit.

[0]: e1b72e569d
2023-10-04 16:09:30 +11:00
Campbell Barton b469d9dd7d Merge branch 'blender-v4.0-release' 2023-10-04 10:33:26 +11:00
Campbell Barton 36f65655cd Cleanup: reserve single quotes for enums 2023-10-04 10:30:28 +11:00
Harley Acheson e1a868df1d Merge branch 'blender-v4.0-release' 2023-10-03 09:46:24 -07:00
Damien Picard b05db089af I18n: translate node panel titles
Nodes recently gained the ability to group inputs into collapsible
panels. These were untranslated, so this commit:
- Adds the appropriate regex to extract node panels defined with
  the `add_panel()` callback.
- Adds the `IFACE()` translation macro to the drawing code for the
  nodes, as well as the properties.

Pull Request: https://projects.blender.org/blender/blender/pulls/112968
2023-10-03 18:24:19 +02:00
Bastien Montagne 10ce3988e2 Merge branch 'blender-v4.0-release' 2023-10-03 13:10:18 +02:00
Bastien Montagne 30aaf3b086 I18N: UI Translation: Add Tamil and enable Bulgarian, Greek and Nepali.
These four languages now have some translated strings, so time to show
them in Blender.

NOTE: effect will take place after next week's update in official
Blender builds.
2023-10-03 13:09:26 +02:00
Sergey Sharybin a21112d7d8 Merge branch 'blender-v4.0-release' 2023-10-02 16:21:06 +02:00
Sergey Sharybin 0e01667e25 Fix Split Strips operator not showing shortcut
This is because the menu entry was using different operator
properties from what the shortcut is defined for. It was needed
to make it so an operator which is called from the menu does not
have dependency on the mouse location.

Now it is achieved by resolving MOUSE side to RIGHT from the
operator's exec().

Ref #112598

Pull Request: https://projects.blender.org/blender/blender/pulls/113143
2023-10-02 16:20:31 +02:00
Pratik Borhade 22bd62c8e0 Merge branch 'blender-v4.0-release' 2023-10-02 16:45:11 +05:30
Pratik Borhade 3a00ba53a1 Fix #113078: Texture paint masking options are always visible
Caused by ef18cdf8dc. Commit did not properly remove the mask panels
from tool settings

Pull Request: https://projects.blender.org/blender/blender/pulls/113085
2023-10-02 13:13:13 +02:00
Sybren A. Stüvel eee51b90a2 Merge remote-tracking branch 'origin/blender-v4.0-release' 2023-10-02 12:42:35 +02:00
Sybren A. Stüvel 26fbeef755 Anim: change UI label from 'Edit Bone Color' to just 'Bone Color'
The `armature.bones["name"].color` property is *the* bone color, which is
intended to be used as the primary way of coloring bones. THis is now
reflected better in the UI.

The per-armature-object bone color (i.e. `ob.pose.bones["name"].color`) is
seen as a secondary.
2023-10-02 11:57:15 +02:00
Sybren A. Stüvel 26c2d2e0b8 Anim: add 'move bone to collection' operator to pose mode menu
Add the 'move bone to collection' operator to the pose mode menu. It was
already in the armature edit mode menu.

The operator was already available in the pose mode keymap, it just wasn't
discoverable via the menu.
2023-10-02 11:57:15 +02:00
Jeroen Bakker 5573568c12 Cleanup: Make format 2023-10-02 07:56:56 +02:00
Harley Acheson 1b77fcf6d0 Merge branch 'blender-v4.0-release' 2023-09-29 10:05:47 -07:00
Harley Acheson 82bfc41d0c UI: Allow Separate Configuration of Subpixel Antialiasing
Separate user configuration of subpixel antialiasing from the hinting
options. For example, this allows turning this on while hinting is
"None", or off when hinting is "Full".

Pull Request: https://projects.blender.org/blender/blender/pulls/113027
2023-09-29 19:02:25 +02:00
Nate Rupsis dd5b870d15 Anim: Add channel type options to the Bake Action operator
Currently, we're limited to the type of Bake Data, without any control over the channels that get baked.

With this change, the user now has a fine degree of control as to which types of f-curve data will be written to the baked action (i.e., location, rotation, scale & b-bone channels).

Co-author  @cmbasnett

Pull Request: https://projects.blender.org/blender/blender/pulls/111997
2023-09-29 15:38:24 +02:00
Philipp Oeser 9e25ac676b Merge branch 'blender-v4.0-release' 2023-09-29 13:18:33 +02:00
Sybren A. Stüvel d6b86f278b Anim: keymap, replace 'show all layers' with 'show all collections'
Make the Ctrl+ACCENT_GRAVE hotkey call the 'show all bone collections'
operator (`armature.collection_show_all`), instead of 'show all armature
layers' (`armature.layers_show_all`).

This was the last reference to `armature.layers_show_all`, and the operator
has been removed.
2023-09-29 11:52:44 +02:00
Lukas Tönne 0afdd5c248 Merge branch 'blender-v4.0-release' 2023-09-29 10:31:31 +02:00
Lukas Tönne 164fbc2863 Fix #113013: Make in_out socket property read-only and remove the button
Pull Request: https://projects.blender.org/blender/blender/pulls/113048
2023-09-29 10:29:57 +02:00
Campbell Barton 5406a4095b Merge branch 'blender-v4.0-release' 2023-09-29 14:56:25 +10:00
Campbell Barton 9c021ae6d5 Merge branch 'blender-v4.0-release' 2023-09-29 14:56:21 +10:00
Campbell Barton fee7057c54 Fix error displaying sequencer retiming menu without an active strip 2023-09-29 14:54:14 +10:00