Commit Graph

603 Commits

Author SHA1 Message Date
Aras Pranckevicius
919d2693c0 Build: expand Visual Studio natvis file
Expand the natvis file (which VS IDE debugger uses to visualize custom
data types) to handle:
- blender::Map with pointer keys
- blender::Set with both regular and pointer keys

Pull Request: https://projects.blender.org/blender/blender/pulls/138866
2025-05-14 14:45:40 +02:00
Clément Foucault
617858e453 GPU: Unified DataFormat enum
This unifies vertex and texture data formats
into a single base enum class.

`TextureFormat` and `VertexFormat` then mask
the invalid format for their respective usage.

Having a base enum allows casting between
`TextureFormat` and `VertexFormat` possible
(needed for Buffer Textures).

It also makes it easier to write and read data
to buffers/textures as each format will have an
associated host type.

These enum is generated from MACRO expansion.
This allow to centralize all information about
the formats in one place. This avoid duplicating
the list of enums for each backend.

This only creates the new enum. Porting older enums will
be done in other PRs.

Normalized integer CPU format are missing and waiting for #130640

Rel #130632

Pull Request: https://projects.blender.org/blender/blender/pulls/138069
2025-05-13 17:08:32 +02:00
Campbell Barton
5e75a9c1e8 Cleanup: spelling in comments 2025-05-11 17:00:47 +10:00
Julian Eisel
9128348e48 Fix: Tools: Commit hashes not shortened in weekly report script
Broken since 53d076612a.
2025-05-08 17:28:29 +02:00
Campbell Barton
16c87b62e4 UI: include rip in the UV menu
The shortcut for this operator wasn't discoverable.
Show this in the menu as done with with edit-mesh rip.
2025-05-07 15:49:21 +10:00
Campbell Barton
accc3de59e Cleanup: resolve mypy warnings
Also include bug_fixes_per_major_release.py in the "make check_mypy"
target.
2025-05-07 15:39:06 +10:00
Sergey Sharybin
0b59d9f00d Fix: make format to expand tabs
There is similar issue as what was fixed in autopep8 with the initial
LFS migration: `git ls-tree` running to gather all files contains files
with non-ascii names, such as some non-latin utf-8 files in the tests.

Decode the ls-tree using utf-8 for C code format as well.

Pull Request: https://projects.blender.org/blender/blender/pulls/138488
2025-05-06 12:39:20 +02:00
Campbell Barton
fd6ac498b0 Cleanup: spelling in comments, strings (make check_spelling_*)
Also replace some triple-quoted non-doc-string strings with commented
blocks in examples.
2025-05-06 00:18:39 +00:00
Sergey Sharybin
bbfc97ad6f Move tests/data and assets to the main repository
This change moves the tests data files and publish folder of assets
repository to the main blender.git repository as LFS files.

The goal of this change is to eliminate toil of modifying tests,
cherry-picking changes to LFS branches, adding tests as part of a
PR which brings new features or fixes.

More detailed explanation and conversation can be found in the
design task.

Ref #137215

Pull Request: https://projects.blender.org/blender/blender/pulls/137219
2025-05-05 15:10:22 +02:00
Campbell Barton
a03db5307b check_spelling: enable checking text in single quotes for C/C++
Now only text enclosed in back-ticks is skipped.
2025-04-26 11:17:14 +00:00
Campbell Barton
c90e8bae0b Cleanup: spelling in comments & replace some use of single quotes
Previously spell checker ignored text in single quotes however this
meant incorrect spelling was ignored in text where it shouldn't have
been.

In cases single quotes were used for literal strings
(such as variables, code & compiler flags),
replace these with back-ticks.

In cases they were used for UI labels,
replace these with double quotes.

In cases they were used to reference symbols,
replace them with doxygens symbol link syntax (leading hash).

Apply some spelling corrections & tweaks (for check_spelling_* targets).
2025-04-26 11:17:13 +00:00
Campbell Barton
189a823d7b check_spelling: use language & token-type specific suppression
When skipping terms, support combinations of language & token types
ignoring different expressions.

This means Python can exclude double back-ticks for doc-strings
and doxygen expressions only need to be detected for C-family languages.
2025-04-26 00:55:51 +00:00
Campbell Barton
682e5e3597 Cleanup: spelling in comments (make check_spelling_*) 2025-04-26 00:48:04 +00:00
Campbell Barton
2d4290f285 Cleanup: spelling in comments (make check_spelling_*)
Also inconsistent capitalization.
2025-04-24 22:45:22 +00:00
Campbell Barton
500509a789 check_spelling: allow variables with an 'th suffix (for indices) 2025-04-25 08:37:11 +10:00
Campbell Barton
4237e6134c Docs: note what git_data_canonical_authors.py is used for. 2025-04-24 01:30:11 +00:00
Thomas Dinges
453d20aeeb Cleanup: Whitespace in issues script 2025-04-23 11:18:14 +02:00
Campbell Barton
9567ac1272 Cleanup: quiet python linter warnings 2025-04-16 11:08:40 +10:00
Campbell Barton
f54dcb2c6c Tools: use arguments for suppressions where possible
These were generated then filtered out, in most cases these can
be suppressed via arguments.
2025-04-15 12:08:08 +10:00
Campbell Barton
ac402bf7af Tools: include STRNLEN macros in code_clean utility 2025-04-12 13:39:11 +10:00
Campbell Barton
8e5c0aedec Cleanup: use type hints for trailing_space_clean.py utility 2025-04-05 20:06:34 +11:00
Campbell Barton
4139d4a8f0 Cleanup: spelling in comments (make check_spelling_*) 2025-04-04 12:48:04 +11:00
Campbell Barton
62ab0837b3 Cleanup: exclude code_layout_diagram.py from mypy check
Also update bl_run_operators.py based as #136156 is fixed.
2025-04-03 13:51:52 +11:00
Thomas Dinges
80db24671b Tools: Update platforms module ID in issues script 2025-04-01 10:36:50 +02:00
Campbell Barton
00deec7c66 Cleanup: spelling in comments 2025-04-01 12:37:36 +11:00
Campbell Barton
0bcafe14f1 Cleanup: resolve/suppress pylint warnings 2025-03-29 11:51:04 +11:00
Campbell Barton
1e27e02325 License header: add missing SPDX header 2025-03-27 16:16:53 +11:00
Campbell Barton
6dfe8e5eb8 cppcheck: update exclude path 2025-03-27 16:15:36 +11:00
Campbell Barton
066c008025 Docs: minor correction to arrows in the layout diagram
Remove arrow from "Operating system" pointing to "Other Directories".

The other directories are for context and aren't called into.

Also correct a typo.
2025-03-27 15:36:41 +11:00
Campbell Barton
a679061207 Docs: add a utility to generate an updated code-layout diagram
Creates an image with a short description of each directory.
See the PR for the current state of the diagram.

Ref !106475
2025-03-27 15:21:50 +11:00
Campbell Barton
33d16796a7 License headers: add header, update files to exclude 2025-03-20 00:39:00 +00:00
Campbell Barton
a65569f367 Merge branch 'blender-v4.4-release' 2025-03-12 21:55:59 +11:00
Campbell Barton
6702645e8d AUTHORS: add 37 new authors 2025-03-12 21:52:39 +11:00
Thomas Dinges
820d550170 Utils: Update git author map 2025-03-11 17:58:33 +01:00
Campbell Barton
3438acc3c3 CMake: add missing headers to source lists 2025-03-06 11:08:18 +11:00
Germano Cavalcante
8162e3dc8c Fix: Tools: 'issues_needing_info.py' failing
`&` is used to separate multiple parameters when there is already a `?`
2025-03-03 13:01:26 -03:00
Jacques Lucke
9cf73d9677 Merge branch 'blender-v4.4-release' 2025-02-25 22:56:48 +01:00
Jacques Lucke
96e87d1e64 Fix: missing import in gdb pretty printers
Not sure why this is suddenly necessary, but I get an error now
that I didn't get in the past without this. The error happened when
accessing `gdb.printing.PrettyPrinter` further down.
2025-02-25 22:56:12 +01:00
Campbell Barton
17f3dc3bde Tools: minor correction to check_licenses reporting
- Include missing licenses in the list of unknown licenses.
- Never show "100.00%" complete unless all licenses headers are correct.
2025-02-18 11:27:19 +11:00
Campbell Barton
9057e528c7 Tools: prevent "struct" being removed from timezone
macOS requires this.
2025-02-18 10:24:23 +11:00
Campbell Barton
dde68fbf95 Tools: fix code_clean operating on the same file from multiple processes
Job splitting logic didn't account for the same file being built
multiple times, causing there to be multiple built arguments per file.

Now multiple build configurations are stored per file.
2025-02-18 10:24:20 +11:00
Campbell Barton
7d53e33889 Cleanup: use typed named tuple for code_clean.py 2025-02-18 10:21:27 +11:00
Campbell Barton
61b2bf4953 Merge branch 'blender-v4.4-release' 2025-02-13 11:23:45 +11:00
Campbell Barton
e2fc2d96f8 Cleanup: wrap Python lines exceeding 120 2025-02-13 10:01:03 +11:00
Campbell Barton
c0b9814c07 Cleanup: quiet warnings & simplify Popen use in project_source_info 2025-02-11 13:42:09 +11:00
Campbell Barton
ad4eb66fdf Tools: add OUTPUT_DIR option to the "check_cppcheck" target
- Add optional `--build-dir` & `--output-dir` arguments to
  "static_check_cppcheck.py".
- Support using `project_source_info.py` without the CWD having
  to be the build-directory.
- Make the script executable.
2025-02-11 13:07:36 +11:00
Julian Eisel
426d7c3d54 Fix: Tools: Weekly report script failure
When filtering events by labels and not passing an `event_type`, events
that don't pass the label check would be returned. See #134331.

Mistake in 5de40adc9e.

Also clarify behavior in function comment.
2025-02-10 12:00:46 +01:00
Julian Eisel
5de40adc9e Tools: Improve gitea utils function optional paramenter handling
Two fixes/improvements to `gitea_json_issue_events_filter()`:
- The `username` parameter would be optional, but not setting it would
  make the function do nothing. Ignore it if not set.
- Not passing `event_type` (and not passing `labels`) would make the
  function do nothing. It wasn't optional strictly speaking but the
  default was an empty set, which is more or less the same. Make it
  properly optional so not specifying an event-type will return events
  of any type.
2025-02-07 14:32:50 +01:00
Campbell Barton
8e122ccc72 Cleanup: correct spelling in comments (check_spelling_*) 2025-02-06 12:37:32 +11:00
Campbell Barton
59732c95d8 Cleanup: strip trailing space for TOML,HTML & XML 2025-02-02 13:58:34 +11:00