Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaron Carlisle <carlisle.b3d@gmail.com>2021-02-19 09:58:16 +0300
committerAaron Carlisle <carlisle.b3d@gmail.com>2021-02-19 09:58:16 +0300
commit241273d36261a24bd71adb82da223b084b4589af (patch)
treec37c9b08a2244bc28a4d97f76d792e94084fac6c
parente6acc4db72d99a3eb5039f6534dc8654873a6535 (diff)
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
-rw-r--r--doc/python_api/sphinx_doc_gen.py2
1 files changed, 1 insertions, 1 deletions
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