[Bf-blender-cvs] [241273d3626] blender-v2.92-release: API Docs: Fix generation failing with unused context members

Aaron Carlisle noreply at git.blender.org
Fri Feb 19 07:58:21 CET 2021


Commit: 241273d36261a24bd71adb82da223b084b4589af
Author: Aaron Carlisle
Date:   Fri Feb 19 01:58:16 2021 -0500
Branches: blender-v2.92-release
https://developer.blender.org/rB241273d36261a24bd71adb82da223b084b4589af

API Docs: Fix generation failing with unused context members

Instead of raising an expection a warnign is generated instead. This 
fixes the issue where `['hair', 'pointcloud']` are disabled for release 
builds. In the future a better solution would be to generate the context 
map dynamically but this would require refactoring of the API: D9988

===================================================================

M	doc/python_api/sphinx_doc_gen.py

===================================================================

diff --git a/doc/python_api/sphinx_doc_gen.py b/doc/python_api/sphinx_doc_gen.py
index 12ffe5b6edf..6d94c619bcf 100644
--- a/doc/python_api/sphinx_doc_gen.py
+++ b/doc/python_api/sphinx_doc_gen.py
@@ -81,7 +81,7 @@ import sys
 import inspect
 import shutil
 import logging
-import warning
+import warnings
 
 from textwrap import indent



More information about the Bf-blender-cvs mailing list