Aaron Carlisle
4deecd97a9
Docs: Python API: Fix theme dependency
...
The upstream dependency was mistakenly changed in
2ce7e89cb7
PR to fix this here: https://github.com/pradyunsg/furo/pull/853
2024-11-28 12:53:57 -05:00
Aaron Carlisle
7993020085
Docs: Update Sphinx & Website Theme
...
This now matches the versions used for the user manual.
2024-11-27 22:40:40 -05:00
Campbell Barton
45dfec6c55
Cleanup: trailing space
2024-11-26 12:41:29 +11:00
Bastien Montagne
fcc1c89923
API Doc: improvements/fixes regarding new requirements for __init__/__del__
2024-11-19 15:37:04 +01:00
Bastien Montagne
b1d044bfb8
Merge branch 'blender-v4.3-release'
2024-11-11 16:17:04 +01:00
Bastien Montagne
69a7948575
Doc: Py API: Add more info about UNDO
operator option.
...
Essentially, any operator modifying Blender data should enable this
`UNDO` option, else bad things (corruption, crashes...) are likely to
happen.
* Added a new Operator example to explain this topic.
* Updated some existing Operator examples that were not correct anymore.
* Added a new small section in the gotchas page linking to it.
* Added also short reminder about this in the `UNDO` 'tooltip'
description itself.
Related to #77557 .
2024-11-11 16:13:37 +01:00
Bastien Montagne
c18ec7e2ad
Fix wrong link in Py API docs after recent refactor.
2024-11-10 18:48:56 +01:00
Bastien Montagne
d5c50fc366
API docs: Split 'Gotchas' page, add some info about python instances and subclasses.
...
This PR:
* Splits the `Gotchas` page into several sub-sections. This was getting too big and hard to navigate.
* Adds some information regarding Python instances life-time of objects wrapping Blender internal data.
* Adds some information about usage of constructors and destructors for sub-classes of Blender-defined types.
Pull Request: https://projects.blender.org/blender/blender/pulls/129814
2024-11-10 18:40:14 +01:00
Bastien Montagne
2910f6dce9
Cleanup: API docs generator: Remove references to removed GP(v2) types.
2024-11-10 18:27:10 +01:00
Bastien Montagne
246b43e136
Merge branch 'blender-v4.3-release'
2024-11-10 18:24:49 +01:00
nutti
1c8669f8c9
Fix: sphinx_doc_gen.py syntax error while generating PyDoc
...
Ref !130085
2024-11-10 23:35:45 +11:00
Campbell Barton
a3773c827d
Merge branch 'blender-v4.3-release'
2024-11-09 13:20:38 +11:00
Campbell Barton
f026c3a80f
Merge branch 'blender-v4.3-release'
2024-11-09 13:20:36 +11:00
Campbell Barton
63c56a5d67
PyDoc: show keyword-only signifier for all RNA functions
2024-11-09 13:19:26 +11:00
Campbell Barton
56cea4a36b
Fix PyDoc: Invalid signature for functions without arguments
...
Ref: !130031
2024-11-09 13:17:43 +11:00
Campbell Barton
96ac7b7ff3
Merge branch 'blender-v4.3-release'
2024-11-06 10:51:53 +11:00
Campbell Barton
6ccbafc5dc
Cleanup: spelling in comments
2024-11-06 10:49:51 +11:00
Campbell Barton
d40a0fc5c3
Merge branch 'blender-v4.3-release'
2024-11-03 22:04:51 +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
470173bbc4
PyDoc: use keyword only specifier for bpy.props & bpy.ops
2024-11-03 21:50:33 +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
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
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
Campbell Barton
f1eb98c427
Merge branch 'blender-v4.3-release'
2024-10-28 09:38:05 +11:00
Campbell Barton
59c52ef2cf
Cleanup: remove unused import in CLI example
2024-10-28 09:36:28 +11:00
Campbell Barton
f3c2deac3e
Cleanup: replace U+00A0 with space
...
Using ASCII space is sufficient in source.
2024-10-09 16:34:39 +11:00
Campbell Barton
3525b83c6b
Cleanup: use specific exception types where appropriate
2024-10-08 09:41:53 +11:00
Campbell Barton
1a1e75c253
Cleanup: replace implicit BaseException with Exception
...
Exception is more appropriate as a general exception in these cases.
2024-10-08 09:41:51 +11:00
Lukas Tönne
a57206dd59
GPv3: Remove unused legacy editor functions for GPv2
...
Removes all unused functions in ED_gpencil_legacy.hh
Pull Request: https://projects.blender.org/blender/blender/pulls/128597
2024-10-07 18:21:28 +02:00
Spencer Magnusson
183112ad40
Docs: update AddonPreferences comment on __package__ use in extensions
...
Ref: !127661
2024-09-16 20:17:27 +10:00
Campbell Barton
97179b10fb
Refactor: make "sys_info" an internal module, rename for clarity
...
- Move sys_info into an internal module to avoid having so many
top level modules for Blender's internal functionality.
- Rename system_info sub-modules that pre-fill URL's for clarity.
- Move top-level exception handling into the operator.
- Report an error if an unexpected exception occurs.
- Use `Exception` instead of `BaseException` as there is no reason to
catch the additional exceptions.
- Remove use of sys_info from the command line example,
replace with in-lined system info.
2024-09-06 11:11:26 +10:00
Campbell Barton
8febf15ea5
Fix missing import in cli command registration example
2024-09-06 10:38:00 +10:00
Campbell Barton
fe6ab4f344
PyDoc: corrections to formatting and resolve warnings
...
Use RST formatting for doc-strings used in Python API docs
as well as minor corrections, also add links for foreach_get/set.
2024-08-19 10:48:06 +10:00
Hans Goudey
4333277aa8
Cleanup: Formatting
2024-08-15 12:45:05 -04:00
Falk David
d09fb76caa
Docs: Python API: Add section about using attributes
...
This adds a section at the top of the `bpy.type.Attribute` about
how to use the attribute API in python.
Pull Request: https://projects.blender.org/blender/blender/pulls/126367
2024-08-15 17:42:47 +02:00
Campbell Barton
dc74a98b9e
Cleanup: remove unused imports
2024-07-23 15:58:21 +10:00
nutti
3ecfa5659e
PyDocs: distinguish between tuple and union data types
...
Ref: !124879
2024-07-18 15:39:04 +10:00
Campbell Barton
8465ca92d2
Cleanup: quiet some pylint warnings for doc-generation
...
Also add punctuation.
2024-07-17 16:43:13 +10:00
nutti
b23567f86e
Fix Context.active_bone type for API docs
...
Support multiple types for a single context memeber.
Ref !124406
2024-07-17 16:29:42 +10:00
Brecht Van Lommel
9068ea6d45
Merge branch 'blender-v4.2-release'
2024-06-14 15:48:27 +02:00
Brecht Van Lommel
1fec22e350
Fix #104061 : RenderEngine Python example does not work in background mode
...
And add example of how to use bl_use_gpu_context.
2024-06-14 15:47:49 +02:00
Brecht Van Lommel
012a6fc573
Cleanup: make format
2024-06-12 17:43:44 +02:00
Matthew Hinson
a04d0b932f
Fix: Broken Dependency Graph Python API example
...
Fix blender/blender-manual#104712
Pull Request: https://projects.blender.org/blender/blender/pulls/122563
2024-06-12 17:21:52 +02:00
Pratik Borhade
1395a958d7
Fix #122788 : Typo in python api docs
2024-06-06 12:49:29 +05:30