Richard Antalik
4af90dcaff
Merge branch 'blender-v4.3-release'
2024-11-04 03:17:14 +01:00
Campbell Barton
41ec8a6d44
Fix errors calling tool set operators without a space
...
This check was added [0] but only for WM_OT_tool_set_by_brush_type.
[0]: 7cbc94d835
2024-11-04 11:55:39 +11:00
Campbell Barton
ba3c53f200
Merge branch 'blender-v4.3-release'
2024-11-03 22:04:48 +11:00
Campbell Barton
d920ef5425
Merge branch 'blender-v4.3-release'
2024-11-03 22:04:44 +11:00
Campbell Barton
e97e2e4b6d
Merge branch 'blender-v4.3-release'
2024-11-03 22:04:42 +11:00
Campbell Barton
091ee2833b
PyDoc: replace references to the deprecated "bgl" with "gpu"
...
Also correct bullet-points in gpu.state.blend_set.
2024-11-03 21:50:33 +11:00
Campbell Barton
b00550916c
PyDoc: correct use of single back-ticks
2024-11-03 21:50:33 +11:00
Campbell Barton
901359abf7
Cleanup: replace doc-strings with comments for internal logic
...
There is no need to store text in memory for comments on functions
that aren't exposed publicly and are only of used when reading
the code.
2024-11-03 21:50:33 +11:00
Campbell Barton
ca8d00d0bb
Cleanup: add doc-strings for bpy_extras.id_map_utils
2024-11-03 21:50:29 +11:00
Campbell Barton
f17379a5d0
Merge branch 'blender-v4.3-release'
2024-11-03 16:07:40 +11:00
Campbell Barton
3bcfb151c1
PyDoc: use Python's type annotation syntax for doc-strings
...
Replace plain-text type information with the type syntax used
for Python's type annotations as it's more concise, especially for
callbacks which often didn't include useful type information.
Note that this change only applies to inline doc-strings,
generated doc-strings from RNA need to be updated separately.
Details:
- Many minor corrections were made when "list" was incorrectly used
instead of "sequence".
- Some type information wasn't defined in the doc-strings and has been
added.
- Verbose type info would benefit from support for type aliases.
2024-11-03 15:44:35 +11:00
Campbell Barton
71a38df6fa
Merge branch 'blender-v4.3-release'
2024-11-02 18:02:15 +11:00
Campbell Barton
a05345e139
PyDoc: various corrections to function doc-strings
...
Add missing arguments, corrections & remove unchecked type info.
2024-11-02 17:48:21 +11:00
Campbell Barton
b3919319fb
Merge branch 'blender-v4.3-release'
2024-11-02 15:44:18 +11:00
Campbell Barton
c056d03f93
Cleanup: move binary operator to line end in Python scripts
2024-11-02 15:43:26 +11:00
Sean Kim
d242a969fe
Merge branch 'blender-v4.3-release'
2024-11-01 11:26:46 -07:00
Sean Kim
8151105e24
Fix #129645 : Sculpt color attribute popover never active
...
With the brush assets project, many paint tools are no longer specified
by tool. To maintain functionality, this commit inspects the brush type
instead of hardcoding against the paint tool to ensure that no matter
which tool is being used, the UI displays correctly based on the brush.
Pull Request: https://projects.blender.org/blender/blender/pulls/129654
2024-11-01 19:23:16 +01:00
Falk David
859e4c8465
Merge branch 'blender-v4.3-release'
2024-10-31 17:11:44 +01:00
Falk David
7e87da72ab
Fix #129637 : GPv3: Python: add_points raises exception
...
Introduced by 68c665ffa1 .
This fix forgot to change parameters of `GreasePencilStrokePointSlice`
in `add_points`.
The fix also adds a test for `add_points` and `remove_points`.
Pull Request: https://projects.blender.org/blender/blender/pulls/129640
2024-10-31 16:22:44 +01:00
Sergey Sharybin
981ab904ba
Merge branch 'blender-v4.3-release'
2024-10-31 16:05:22 +01:00
Falk David
ab3186120c
Fix #129239 : GPv3: Python: Vertex color is initialized as white
...
The default value for `FLOAT_COLOR` attributes is white. We can't
change this default easily.
This fix will initialize the attributes accessed through the high-level
python API with their expected default value. In the case of
vertex colors, this is fully transparent black.
Pull Request: https://projects.blender.org/blender/blender/pulls/129638
2024-10-31 15:37:02 +01:00
Julien Duroure
61505200e9
Merge branch 'blender-v4.3-release'
2024-10-31 15:13:20 +01:00
Julien Duroure
1f5d24fe0d
glTF exporter: Fix some UDIM export
...
- Do not export tiles if no vertices in it
- fix check jpg & webp detection for udim textures
2024-10-31 15:11:51 +01:00
Julien Duroure
fa73c18f07
Merge branch 'blender-v4.3-release'
2024-10-31 14:54:38 +01:00
Julien Duroure
912c85bb9d
glTF exporter: Fix #129407 - fix crash when step is != 1 and actions are not aligned
...
Example:
Step is 3
Action starts at 1, so the action will try to export frames 1 / 4 / 7 / 10, etc...
But full object backing is enable, and scene starts at 0.
So cached data are on frame 0 / 3 / 6 / 9 / 12, etc...
When we are trying to export the action on armature after the full bake on empty, we are trying to retrieve frame 1, but cache was on 0 / 3 / 6 / 9
2024-10-31 14:52:55 +01:00
Julien Duroure
b6346312c4
glTF exporter: Add some poll sanity checks
2024-10-31 14:46:36 +01:00
Julien Duroure
47be254a4e
Merge branch 'blender-v4.3-release'
2024-10-31 14:30:41 +01:00
Julien Duroure
1d108b0d77
glTF exporter: Fix Regression #128807 - avoid spaming stdout
...
error log will go to stderr, and others to stdout
A new parameter in operator to set the loglevel from command line bpy.ops.export_scene.gltf(loglevel=logging.INFO)
If not set from the ops, value is -1, and is set, as before, from the bpy.app.debug_value
2024-10-31 14:28:40 +01:00
Julien Duroure
72348b2c94
Merge branch 'blender-v4.3-release'
2024-10-31 14:16:41 +01:00
Julien Duroure
c872ae4959
glTF exporter: Fix regression exporting animated camera
...
Was introduced bu KHR_animation_pointer
2024-10-31 14:15:24 +01:00
Julien Duroure
f08fab9825
Merge branch 'blender-v4.3-release'
2024-10-31 14:09:25 +01:00
Julien Duroure
d723afe49f
glTF exporter: Fix regression exporting emission with texture
...
Regression was introduced by KHR_animation_pointer
2024-10-31 14:08:22 +01:00
Julien Duroure
ab45c6b27c
Merge branch 'blender-v4.3-release'
2024-10-31 14:01:49 +01:00
Julien Duroure
2c67b22bbb
glTF exporter: Remove some typing
...
This crashes bpy as a module (not sure why)
Cf #126807
2024-10-31 14:00:15 +01:00
Julien Duroure
32f7400f87
Merge branch 'blender-v4.3-release'
2024-10-31 13:55:58 +01:00
Julien Duroure
0b3010d84c
glTF exporter: Fix #128647 : Make KHR_materials_variants a not required extension
...
This extension is enabled, but not required for reading the file
2024-10-31 13:53:51 +01:00
Julien Duroure
98cf9fa85b
Merge branch 'blender-v4.3-release'
2024-10-31 13:46:06 +01:00
Julien Duroure
fb2edb17d9
glTF exporter: fix typo in hook name
...
Preventing having 2 hooks with same name at different places
2024-10-31 13:44:37 +01:00
Julien Duroure
8cbf156f0d
Merge branch 'blender-v4.3-release'
2024-10-31 13:40:49 +01:00
Julien Duroure
16754328f6
glTF exporter: Manage alpha when performing RGB2BW conversion
...
Based on what is visually done in viewport
2024-10-31 13:39:04 +01:00
Julien Duroure
47611af4d1
Merge branch 'blender-v4.3-release'
2024-10-31 13:30:14 +01:00
Julien Duroure
080877be6b
glTF exporter: Fix #129548 - Regression - Export ShapeKeys when only Armature modifier
...
Set a custom property (ignore at export) that can identify and differenciate:
- evaluated mesh
- geometry node with SK
2024-10-31 13:27:37 +01:00
Julien Duroure
c394130156
Merge branch 'blender-v4.3-release'
2024-10-31 13:19:46 +01:00
Julien Duroure
e04ac909b2
glTF: Set min Blender version 4.3
...
Because Draco lib is avaiable for bpy as a module only since 4.3
2024-10-31 13:18:08 +01:00
Julien Duroure
47ca37f961
Merge branch 'blender-v4.3-release'
2024-10-31 13:14:40 +01:00
Julien Duroure
b25da97fef
glTF: Fix #113469 : enable Draco compression for bpy as a py module
...
By looking in correct directory for bpy module
This was of course already available for Blender itself since few years
2024-10-31 13:13:19 +01:00
Laurynas Duburas
229e0a8cae
Curves: Convert handle types when transforming
...
Converts Bezier handle types when transforming starts.
If single BEZIER_HANDLE_AUTO handle is transformed it becomes
BEZIER_HANDLE_ALIGN. If single BEZIER_HANDLE_VECTOR handle is
transformed it becomes BEZIER_HANDLE_FREE.
https://docs.blender.org/manual/en/latest/modeling/curves/structure.html
Rel #105038
Pull Request: https://projects.blender.org/blender/blender/pulls/128638
2024-10-31 10:42:24 +01:00
Campbell Barton
c9e5c456d0
Merge branch 'blender-v4.3-release'
2024-10-31 18:52:21 +11:00
Campbell Barton
7cbc94d835
Fix some exceptions in Python operators when poll fails
2024-10-31 18:50:03 +11:00
Hans Goudey
08a9c8b786
Merge branch 'blender-v4.3-release'
2024-10-30 17:41:08 +01:00