Commit Graph

1279 Commits

Author SHA1 Message Date
Thomas Dinges
eaef5e87c2 Revert "Release: Bump branch to 4.4 Beta."
This reverts commit 8a6e3a0bd7.
2025-02-05 11:25:54 +01:00
Thomas Dinges
8a6e3a0bd7 Release: Bump branch to 4.4 Beta.
Splash screen by Flow.
2025-02-05 11:24:33 +01:00
Campbell Barton
cb83a41dc4 Cleanup: spelling in comments
Also include "release/" in the `check_spelling_py` target.
2025-01-31 15:07:11 +11:00
Gilberto.R
17c98a2c8c UI: Flip Material icon horizontally
Horizontally flip the 'Material' Icon to better differentiate it from
the 'World' icon. https://blender.community/c/rightclickselect/p9Zp/

Pull Request: https://projects.blender.org/blender/blender/pulls/131568
2025-01-28 00:05:07 +01:00
Nika Kutsniashvili
693f8f37d0 Fix #133326: Material preview for Grease Pencil
Material preview panel for grease pencil was accidentally removed in e10b0b3449 because it had EEVEE engine listed as `COMPAT_ENGINES`, which also seemed accidental. After adding panel back I noticed that .blend file for generating previews was also faulty. It was updated 2 years ago when GPv3 was experimental feature, and file wasn't up to date to current state.

This PR also adds new .blend file for generating material previews that is mostly the same as one in Blender 4.2, except:
- I organized it, removed unnecessary stuff.
- For Flat preview it was using flat checkerboard background, for other modes 3D room, which seemed unnecessary and not useful for Grease Pencil, so now every mode uses flat background.
- "Cloth", "Liquid", and "Shaderball" modes in 4.2 didn't render at all and resulted in all white screen. Now they render default Circle, which is not correct, but at least better than nothing. In future we can add custom drawings to those modes for previewing materials on more complex objects.

Pull Request: https://projects.blender.org/blender/blender/pulls/133372
2025-01-21 16:34:48 +01:00
Sean Kim
7ba732a911 Assets: Update submodule hash
Related PR: blender/blender-assets#19

Ref: #131122

Pull Request: https://projects.blender.org/blender/blender/pulls/133219
2025-01-17 21:30:22 +01:00
Harley Acheson
6696f11808 UI: Upgrade Inter font 4.0 -> 4.1
Released November 15 2024, version 4.1 has a lot of changes shown here:
https://github.com/rsms/inter/releases but nothing that anyone should
notice as it mostly looks identical. Same transforms applied: Tabular
numbers, Open Digits, and Disambiguation without slashed zero.

Pull Request: https://projects.blender.org/blender/blender/pulls/132508
2025-01-16 22:56:53 +01:00
Sean Kim
8b6556d556 Assets: Bump submodule hash for recent change
Related PR: blender/blender-assets#18

Pull Request: https://projects.blender.org/blender/blender/pulls/132761
2025-01-07 19:09:27 +01:00
Harley Acheson
6a06e87f85 Fix #120833: Align Reset to Default with Preferences Defaults
This PR fixes a number of items in Preferences that "Reset to Default"
to different values than the default preferences. For some items this
is because they just have incorrect values, some have redundancies
between the U_default struct and property default, and many others are
caused by our code that reverses struct defaults for properties that
are "negative SDNA", or don't struct defaults for enum_bitflag_sdna
properly. Items include "show_splash", "anisotropic_filter", etc.

Pull Request: https://projects.blender.org/blender/blender/pulls/132762
2025-01-07 18:58:27 +01:00
Campbell Barton
ebf41cf047 Cleanup: quiet mypy warnings 2025-01-06 16:58:56 +11:00
Campbell Barton
4f1817cc18 Cleanup: declare __all__ for Python scripts
Declare all to make public public API's explicit and
help detect unused code.
2025-01-06 16:45:36 +11:00
Campbell Barton
6216e8574c Cleanup: declare __all__ for doc-generation & icon updating utils 2025-01-04 20:33:53 +11:00
Aras Pranckevicius
5458dff301 Fix #132172: studiolight HDRIs have black/negative pixels
The worldspace studiolight HDR images shipped in Blender have some
black/negative pixel artifacts, mostly in the brightest areas. These
are caused by the default downscaling filter that has negative lobes,
last time they were updated/added in e9df155d53. Fix the issue by
downloading already correct resolution (1024x512) from the source,
and recompressing with the same DWA quality setting.

Co-authored-by: Steffen Dünner <steffen.duenner@gmail.com>
Pull Request: https://projects.blender.org/blender/blender/pulls/132220
2024-12-23 12:40:17 +01:00
Richard Antalik
8ce5356522 VSE: Text editing in preview
This commit implements most features needed for simple text editing.

Active text strip can be edited in preview by pressing tab key, which
enabled text editing mode. With this mode active, outline matches text
boundary box and cursor is drawn.

Cursor can be moved with usual keys. Pressing shift starts selection.
Selection and navigation works when text is scaled or rotated. Mirrored
text is not supported in this PR. it can be done, but the text is
unreadable that way, so I kept it simple.

Multi line text is supported. Pressing return key starts new line.

Copy/paste operator uses OS copy paste buffer, so text from other apps
can be pasted.

Text is still limited to 512 characters. Text string property still
exists in side panel and is limited to single line. Individual
characters can not be styled in different way like in 3D viewport, but
the code is mostly ready for such feature.

Ref: #126547

Pull Request: https://projects.blender.org/blender/blender/pulls/127239
2024-12-19 15:56:54 +01:00
Sean Kim
8b853e46a0 Assets: Update sculpt essential library hash
Relevant PR: blender/blender-assets!17

Pull Request: https://projects.blender.org/blender/blender/pulls/131881
2024-12-13 22:57:47 +01:00
Jesse Yurkovich
3bb6e8f1b8 Cleanup: Remove old embedded preview_grease_pencil_legacy.blend
Looks like a simple leftover. The linkers are smart enough to completely
exclude this from the final binary so this is only targeting `main` as a
general cleanup.

Part of #130518.

Pull Request: https://projects.blender.org/blender/blender/pulls/129271
2024-12-02 18:07:57 +01:00
Sean Kim
1af839d419 Fix #130707: Weight paint gradient tool doesnt fill behind start point
See blender/blender-assets!15 for the actual asset file change.

As part of the brush asset project, various weight paint brushes had
their falloff curve changed. This had the unintended effect of changing
the behavior of the gradient tool, as it shares the currently active
brush's settings.

This behavior is unintuitive and not well documented, as an interim fix,
the bundled assets were reverted.

Pull Request: https://projects.blender.org/blender/blender/pulls/131058
2024-11-27 22:46:49 +01:00
Sean Kim
be62107fbd Assets: Update asset repository hash for essentials library updates
Includes blender/blender-assets@360e2172

Pull Request: https://projects.blender.org/blender/blender/pulls/131057
2024-11-27 22:18:03 +01:00
Harley Acheson
8bcb714b9e UI: Face Orientation Front Color Transparent
This PR changes the default theme color for TH_FACE_FRONT, used by the
Face Orientation overlay, to have zero alpha. That way, by default, it
can be used always and not interfere with the display of (normal) front
faces.

Pull Request: https://projects.blender.org/blender/blender/pulls/130618
2024-11-20 21:39:40 +01:00
John Kiril Swenson
25f34c0614 Merge branch 'blender-v4.3-release' 2024-11-07 22:48:15 -06:00
John Kiril Swenson
2c10fe4158 Fix: VSE: Make "connect strips" default
Implementation in #124333 had versioning code in `versioning_userdef.cc`
to make sure that updated configs would also have connected strips by default,
but forgot to change `userdef_default.c`.

Pull Request: https://projects.blender.org/blender/blender/pulls/129993
2024-11-08 05:45:58 +01:00
Sean Kim
7262146c1f Merge branch 'blender-v4.3-release' 2024-11-07 13:20:47 -08:00
Sean Kim
5c880a5291 UI: Revert default brush icon to monochrome version
Earlier in the brush assets project, for mesh sculpting, grease pencil,
and curves sculpting, the toolbar brush icon used was changed to a
version with a green highlight. This commit reverts that change to use
the monochrome grey icon instead in each of these modes.

For Sculpt mode specifically, the Paint tool icon is kept as this green
version to differentiate the usages. In future releases, further changes
are planned for sculpting related brushes to better represent their
functionality.

---

### Sculpt Mode Toolbar

![image](/attachments/f1575814-88f0-44f7-8ab6-7b069ff09763)

Pull Request: https://projects.blender.org/blender/blender/pulls/129934
2024-11-07 22:13:58 +01:00
Julian Eisel
b95b5e0f77 Assets: Update assets repository hash for essentials library updates
A number of fixes were done for the brushes in the essentials asset
library, update the hash to include them.
2024-11-05 12:08:18 +01:00
Julian Eisel
d8680e9476 Merge branch 'blender-v4.3-release' 2024-11-05 12:06:47 +01:00
Julian Eisel
2f6197daa9 Assets: Update assets repository hash for essentials library updates
A number of fixes were done for the brushes in the essentials asset
library, update the hash to include them.
2024-11-05 12:03:45 +01:00
Julien Duroure
47ca37f961 Merge branch 'blender-v4.3-release' 2024-10-31 13:14:40 +01:00
Campbell Barton
f13ca4dad0 Merge branch 'blender-v4.3-release' 2024-10-27 23:26:31 +11:00
Campbell Barton
41cb811849 Cleanup: update the default theme
Re-generate the default theme from blender_theme_as_c.py
2024-10-27 23:24:21 +11:00
Campbell Barton
a0453ab87a Cleanup: update use of typing in for Python scripts 2024-10-23 12:48:09 +11:00
Julian Eisel
a6b1c4bc18 Fix: Assets repository hash pointing to release branch
Earlier merge from the release branch included dcfe9eed2f, which set the
hash to latest commit in the release branch. Here we want it to be the
latest commit in the main branch.
2024-10-18 14:51:50 +02:00
Julian Eisel
070a84580e Merge branch 'blender-v4.3-release' 2024-10-18 14:44:56 +02:00
Julian Eisel
dcfe9eed2f Assets: Update assets repository hash for essentials library updates
Asset previews and catalogs for the essentials asset library were
changed, see a11acb63e5, 09bd5a5777.
2024-10-18 14:12:05 +02:00
Pablo Vazquez
c8b37a798c Splash: Update artwork with proper colour space
Credit: Blender Studio https://studio.blender.org/
2024-10-03 18:03:47 +02:00
Thomas Dinges
4c47c7e634 Revert "Release cycle: Blender 4.3 Beta"
This reverts commit 906bc801f4.
2024-10-02 12:35:26 +02:00
Thomas Dinges
906bc801f4 Release cycle: Blender 4.3 Beta
Splash screen by Blender Studio: studio.blender.org
2024-10-02 12:34:01 +02:00
Julian Eisel
3798852071 Sculpt/Paint: Bring back some brush tools for paint modes
Since brush assets were merged, all sculpt and paint modes have a unified
"Brush" tool that is used for all brushes. Based on feedback, this mixes brush
types a bit too much, so some specific tools that use brushes should be brought
back. These brush types just behave very different from the main brush types,
and users expect them to be easily accessible from the toolbar. This also makes
them more discoverable and having tools that remember their last used brush can
be useful too (e.g. assigning shortcut to eraser tool to switch back to last
used eraser, rather than a specific eraser brush).

Note that further changes are planned, to get a true "best of both worlds"
design, where people can use a global brush library without having to worry
about tools, but brushes can also be accessed via tool categorization.
The new design works well with both mental models without being a compromise
in-between.

a79f9100a6 already brought back some tool for grease pencil draw mode, with this
commit the design is now applied to all sculpt & paint modes.

See PR for a list of tools that were brought back.

Design Task: https://projects.blender.org/blender/blender/issues/128066
Pull Request: https://projects.blender.org/blender/blender/pulls/128038
2024-10-01 18:03:33 +02:00
Julian Eisel
12b50ccb50 Assets: Update assets repository hash for essentials library updates
Asset catalogs for the essentials asset library were changed, see
88f1a1caf7f0.
2024-09-30 16:53:17 +02:00
Pablo Vazquez
d6ec2f0539 UI: Update icon for Grease Pencil layer and group
The current icon for Grease Pencil layers is a pen, it doesn't really
communicate the "layer" aspect. Replace with a paper sheet-like icon.

The layer group gets its own icon. It's a stack of animation paper.

Inspired by Daniel Correa Flores's design on DevTalk:
https://devtalk.blender.org/t/ui-discussion-grease-pencil-layer-and-layer-group-icons/30693/25

Pull Request: https://projects.blender.org/blender/blender/pulls/128208
2024-09-27 17:24:40 +02:00
Harley Acheson
28e5c1412e UI: Editor Edge Highlighting
Customizable highlighting of editor edges that can be used to help
differentiate between areas, indicate active area, and/or help users
with visual impairment. Can be completely removed as well. This
replaces the active area header highlighting, which doesn't work for
transparent headers.

Pull Request: https://projects.blender.org/blender/blender/pulls/116684
2024-09-26 21:55:26 +02:00
Julian Eisel
1e2ac0e899 Assets: Update assets repository hash for essentials library updates
The essentials asset library was updated with new and improved brush
assets, see 9dfd0a171f.
2024-09-26 19:25:09 +02:00
Alaska
b3a3c7fbb0 Update license information
Ref: !128100
2024-09-25 12:45:20 +10:00
Jacques Lucke
6e5e01e630 Geometry Nodes: new For Each Geometry Element zone
This adds a new type of zone to Geometry Nodes that allows executing some nodes
for each element in a geometry.

## Features

* The `Selection` input allows iterating over a subset of elements on the set
  domain.
* Fields passed into the input node are available as single values inside of the
  zone.
* The input geometry can be split up into separate (completely independent)
  geometries for each element (on all domains except face corner).
* New attributes can be created on the input geometry by outputting a single
  value from each iteration.
* New geometries can be generated in each iteration.
    * All of these geometries are joined to form the final output.
    * Attributes from the input geometry are propagated to the output
      geometries.

## Evaluation

The evaluation strategy is similar to the one used for repeat zones. Namely, it
dynamically builds a `lazy_function::Graph` once it knows how many iterations
are necessary. It contains a separate node for each iteration. The inputs for
each iteration are hardcoded into the graph. The outputs of each iteration a
passed to a separate lazy-function that reduces all the values down to the final
outputs. This final output can have a huge number of inputs and that is not
ideal for multi-threading yet, but that can still be improved in the future.

## Performance

There is a non-neglilible amount of overhead for each iteration. The overhead is
way larger than the per-element overhead when just doing field evaluation.
Therefore, normal field evaluation should be preferred when possible. That can
partially still be optimized if there is only some number crunching going on in
the zone but that optimization is not implemented yet.

However, processing many small geometries (e.g. each hair of a character
separately) will likely **always be slower** than working on fewer larger
geoemtries. The additional flexibility you get by processing each element
separately comes at the cost that Blender can't optimize the operation as well.
For node groups that need to handle lots of geometry elements, we recommend
trying to design the node setup so that iteration over tiny sub-geometries is
not required.

An opposite point is true as well though. It can be faster to process more
medium sized geometries in parallel than fewer very large geometries because of
more multi-threading opportunities. The exact threshold between tiny, medium and
large geometries depends on a lot of factors though.

Overall, this initial version of the new zone does not implement all
optimization opportunities yet, but the points mentioned above will still hold
true later.

Pull Request: https://projects.blender.org/blender/blender/pulls/127331
2024-09-24 11:52:02 +02:00
casey bianco-davis
3c67ae7785 GPv3: Rename Cutter tool to Trim
This rename the `Cutter` tool's name, code and icon to `Trim`.
The legacy Grease Pencil code is unchanged.

This was discussed in the 2024-07-30 Grease Pencil Module Meeting.

Reasons for the change:
 - Match the `Trim Stroke Ends` setting on brushes.
 - Match the `stroke_trim` operator.
 - Name is more clear and more commonly used.
 - Frees the name for a future boolean cutting tool.

Pull Request: https://projects.blender.org/blender/blender/pulls/126452
2024-09-13 16:56:51 +02:00
Sean Kim
c5241cc638 Fix #127259: Slow pose brush performance on dense mesh
See blender/blender-assets!10

Pull Request: https://projects.blender.org/blender/blender/pulls/127466
2024-09-11 20:07:18 +02:00
Harley Acheson
9ee86c589d UI: Add SVG Parent Group to Two More Icons
This PR just alters the source SVG files for file_alias and
geometry_set so that their subgroups are inside a parent group.

Pull Request: https://projects.blender.org/blender/blender/pulls/127428
2024-09-10 22:26:55 +02:00
Harley Acheson
5285d7b859 UI: Blender Logo Fitting in Bounds
Resizing of the Blender SVG logo to fit within an 1800 unit horizontal
maximum rather than being oversized.  Makes it slightly smaller overall
but not sure anyone will notice.

Pull Request: https://projects.blender.org/blender/blender/pulls/127370
2024-09-10 20:53:43 +02:00
Harley Acheson
445b609e2d UI: Add SVG parent group to two large icons
This PR just alters the source SVG files for question_large and
warning_large so that their subgroups are inside a parent group.

Pull Request: https://projects.blender.org/blender/blender/pulls/127265
2024-09-06 21:27:05 +02:00
Dalai Felinto
c9da54dd02 Fix key_command icon
This error was introduced on 7dc3e8e04d
by the automatic script used (after my original PR code - !127194).

The SVG had the same attributes added twice.

The issue was technically introduced on
ffa802da7ac09273a34903438550e0966c4063dc (which is not in main but part
of the code which was merged).
2024-09-06 12:36:37 +02:00
Dalai Felinto
7dc3e8e04d Cleanup: UI: Make sure all icons have the paths inside a group
All the SVGs here were saved as plain SVG from inskcape.

Pull Request: https://projects.blender.org/blender/blender/pulls/127194
2024-09-05 20:15:36 +02:00