660 Commits

Author SHA1 Message Date
Campbell Barton
08af18aad8 Merge branch 'blender-v4.3-release' 2024-11-06 10:51:48 +11:00
Campbell Barton
ec46eafeb9 Merge branch 'blender-v4.3-release' 2024-11-06 10:51:41 +11:00
Campbell Barton
9a4e3fb163 Tools: include exception in GDB extension errors 2024-11-06 10:49:46 +11:00
Campbell Barton
326b65f27c Tools: bump autopep8 min version 2024-11-06 10:49:44 +11:00
Campbell Barton
d920ef5425 Merge branch 'blender-v4.3-release' 2024-11-03 22:04:44 +11:00
Campbell Barton
b00550916c PyDoc: correct use of single back-ticks 2024-11-03 21:50:33 +11:00
Campbell Barton
7b3e2fd7dd mypy: add 3 scripts to the "make check_mypy" config 2024-11-02 23:18:59 +11:00
Campbell Barton
f86710b90f Cleanup: pass multiple arguments to str.startswith 2024-10-30 16:33:37 +11:00
Campbell Barton
0c8177f710 Merge branch 'blender-v4.3-release' 2024-10-29 14:45:57 +11:00
Campbell Barton
731712e3a7 AUTHORS: add 1 new author (via override) 2024-10-29 14:43:10 +11:00
Campbell Barton
c72076aec8 Merge branch 'blender-v4.3-release' 2024-10-28 09:52:18 +11:00
Campbell Barton
a312bfe6d5 Fix use of undefined variable in blend2json utility 2024-10-28 09:50:57 +11:00
Campbell Barton
901da07c59 Merge branch 'blender-v4.3-release' 2024-10-27 23:26:26 +11:00
Campbell Barton
4ac25883a3 Update blender_theme_as_c to match renamed define 2024-10-27 23:22:13 +11:00
Campbell Barton
cfc645901f Cleanup: use type hints for discover_nodes.py 2024-10-23 13:18:36 +11:00
Campbell Barton
a0453ab87a Cleanup: update use of typing in for Python scripts 2024-10-23 12:48:09 +11:00
Campbell Barton
68b1fe3986 Merge branch 'blender-v4.3-release' 2024-10-23 12:30:01 +11:00
Campbell Barton
d1c82cc537 Cleanup: spelling in comments 2024-10-23 12:25:58 +11:00
Campbell Barton
5955e0566c Cleanup: update use of typing for tools/utils 2024-10-22 16:44:21 +11:00
Campbell Barton
9df897a1d8 make license: back port changes from main
Back port fix & changes from main to keep licenses compatible for all
releases:

- 675aa86ca6
- 9f0043b8d6
- 81025eabd2
2024-10-21 20:57:58 +11:00
Dalai Felinto
8cff5ecb4d Cleanup: make_license: use Path more deliberately
Changes suggested by Sybren Stüvel.

The original suggestion was even to use resolve() instead of abspath,
but we don't even need that here.
2024-10-21 11:55:27 +02:00
Dalai Felinto
d1857d1d58 Revert "Cleanup: make_license: use Path more deliberately"
This reverts commit 94959cb84f.

make_license.py was actually refactored in main, and this is introducing
a minor conflict. I will leave make_license as it is in 4.3, and focus
on the cleanups in main itself.
2024-10-21 11:45:04 +02:00
Dalai Felinto
94959cb84f Cleanup: make_license: use Path more deliberately
Changes suggested by Sybren Stüvel.
2024-10-21 11:40:45 +02:00
Campbell Barton
81025eabd2 Refactor: various changes to "make license"
- Avoid manipulating a dictionary arguments, use return values &
  iterators to return results.
- Move logic out of the file reading context once the file was read
  (reducing right-shift).
- Move intermediate license data from a dictionary to a named-tuple
  for better clarity & type safety.
- Remove use of `dataclass` as a container for constants,
  as it quite clear to define the constants directly in the
  global namespace.
- Group imports at the beginning of the file (no need to quiet pylint).
- Add headings for code sections.
- Use double quotes.
- Use the term "dir" instead of both dir/folder.
- Note the limitations parsing CMake files directly,
  with a possible alternative.
2024-10-19 17:53:17 +11:00
Campbell Barton
9f0043b8d6 Fix "make license" hiding duplicate versions of the same library
There are two "SPIRV TOOLS" IGC_SPIRV_TOOLS & SHADERC_SPIRV_TOOLS, in:
build_files/build_environment/cmake/versions.cmake

Show both in the license.md file.

Also remove use of defaultdict to make it clear where dictionary
values are created.
2024-10-19 17:53:16 +11:00
Campbell Barton
675aa86ca6 make license: clear trailing white space & ensure newline at eof
Clear trailing space as this has as space at the line end
has a special meaning in markdown.

Write a new line at the end of the file
since some development tools add this or note when it's missing,
it's simplest just to add it.
2024-10-19 17:52:01 +11:00
Falk David
d61c08453d Merge branch 'blender-v4.3-release' 2024-10-18 18:11:20 +02:00
Falk David
f1a92ea4dd Formatting 2024-10-18 18:10:31 +02:00
Thomas Dinges
6a1fa73b18 Merge branch 'blender-v4.3-release' 2024-10-18 17:20:04 +02:00
Dalai Felinto
0a4dbc57b8 make license: command to update the license file
This generates a `license.md` file with all the relevant information about
the different libraries and their respecive licenses.

This should replace: THIRD-PARTY-LICENSES.txt

Important files:
* `make_license.py` (main script called by `make license`.
* `licenses.json` (file to add the definition of new licenses).
* `licenses/*/*.txt` (individual license files.

The `license.md` groups the libraries per license, list their
corresponding copyright information and include the complete license.

Code includes contributions from:
* Campbell Barton (multi-line parser for versions.cmake).
* Thomas Dinges (Windows support for `make license`).

Part of: !129018
2024-10-18 17:09:43 +02:00
Campbell Barton
2cfc1112d8 AUTHORS: add 1 new author & some updated names 2024-10-17 11:53:51 +11:00
Campbell Barton
233d213ee9 Merge branch 'blender-v4.3-release' 2024-10-17 09:51:20 +11:00
Campbell Barton
46864bc2f4 AUTHORS: add 1 new author & some updated names 2024-10-17 09:48:39 +11:00
Campbell Barton
0b656308cf Merge branch 'blender-v4.3-release' 2024-10-16 21:08:19 +11:00
Campbell Barton
931469484e pyproject.toml: correct autopep8 configuration for 2.3.1
The updated autopep8 was ignoring the "exclude" values because
they started with a "./" instead of a "/".

The documentation I found doesn't go into details, even if this is a
regression in autopep8, update the configuration as it causes
"make format" to format files that aren't meant to be modified.
2024-10-16 20:55:03 +11:00
Campbell Barton
9bd2e3554a Merge branch 'blender-v4.3-release' 2024-10-16 15:07:33 +11:00
Campbell Barton
c3b067dc80 Cleanup: single/double quote use in scripts 2024-10-16 14:45:08 +11:00
Campbell Barton
11e41f7276 Merge branch 'blender-v4.3-release' 2024-10-15 16:22:09 +11:00
Campbell Barton
44d0452a78 Cleanup: spelling in comments 2024-10-15 12:51:05 +11:00
Campbell Barton
19aaa0f065 Merge branch 'blender-v4.3-release' 2024-10-10 12:19:51 +11:00
Campbell Barton
dbf6960bf3 Fix error in triage module listing script
The uncategorized reports were not being created due to incorrect
indentation.
2024-10-10 12:10:18 +11:00
Bastien Montagne
c67e4f5c35 LSAN supp list: add pa_xmalloc from PulseAudio library. 2024-10-08 12:15:30 +02:00
Campbell Barton
2e881eacd1 Cleanup: spelling in comments 2024-10-08 09:54:29 +11:00
Falk David
5f5b1b83d0 GPv3: Rename mode enum names and python identifiers
This renames the mode identifiers to be consistent with e.g. the context mode identifiers and other names used for the new Grease Pencil.

For `object.mode`:
* `PAINT_GPENCIL` -> `PAINT_GREASE_PENCIL`
* `SCULPT_GPENCIL` -> `SCULPT_GREASE_PENCIL`
* `VERTEX_GPENCIL` -> `VERTEX_GREASE_PENCIL`
* `WEIGHT_GPENCIL` -> `WEIGHT_GREASE_PENCIL`

For the internal `ob->mode` flag:
* `OB_MODE_PAINT_GPENCIL_LEGACY` -> `OB_MODE_PAINT_GREASE_PENCIL`
* `OB_MODE_SCULPT_GPENCIL_LEGACY` -> `OB_MODE_SCULPT_GREASE_PENCIL`
* `OB_MODE_VERTEX_GPENCIL_LEGACY` -> `OB_MODE_VERTEX_GREASE_PENCIL`
* `OB_MODE_WEIGHT_GPENCIL_LEGACY` -> `OB_MODE_WEIGHT_GREASE_PENCIL`

Resolves #127374.

Pull Request: https://projects.blender.org/blender/blender/pulls/128604
2024-10-04 19:20:00 +02:00
Campbell Barton
5fa0e1fc8d AUTHORS: add 29 new authors 2024-10-03 15:56:48 +10:00
Campbell Barton
a7ab81d927 PyAPI: remove use of BaseException
BaseException was used as a catch-all in situations where it
didn't make sense and where "Exception" is more appropriate
based on Python's documentation & error checking tools,
`pylint` warns `broad-exception-caught` for e.g.

BaseException includes SystemExit, KeyboardInterrupt & GeneratorExit,
so unless the intention is to catch calls to `sys.exit(..)`,
breaking a out of a loop using Ctrl-C or generator-exit,
then it shouldn't be used.

Even then, it's preferable to catch those exceptions explicitly.
2024-10-01 13:18:46 +10:00
Campbell Barton
c6fd26a3f5 Cleanup: spelling in comments 2024-10-01 09:59:33 +10:00
Campbell Barton
0e08e8bf2d Cleanup: add missing CMake headers, update "check_cmake" config 2024-09-25 19:24:21 +10:00
Campbell Barton
840c65f442 Cleanup: spelling in comments 2024-09-25 19:24:20 +10:00
Campbell Barton
a4f99f41a7 Tools: exclude ./lib/ from deprecation checker 2024-09-23 11:43:35 +10:00