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
path: root/doc
diff options
context:
space:
mode:
authorAaron Carlisle <carlisle.b3d@gmail.com>2021-02-19 06:51:24 +0300
committerAaron Carlisle <carlisle.b3d@gmail.com>2021-02-19 06:51:24 +0300
commite6acc4db72d99a3eb5039f6534dc8654873a6535 (patch)
treee98b469218a9b58c5b97b4be5550a17f3eb1b824 /doc
parentc297bef9aff5d6eeea26ddd869f4dc03a34d3457 (diff)
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 Fixes T80364 Differential revision: https://developer.blender.org/D10468
Diffstat (limited to 'doc')
-rw-r--r--doc/python_api/sphinx_doc_gen.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/doc/python_api/sphinx_doc_gen.py b/doc/python_api/sphinx_doc_gen.py
index 930e5b88911..12ffe5b6edf 100644
--- a/doc/python_api/sphinx_doc_gen.py
+++ b/doc/python_api/sphinx_doc_gen.py
@@ -81,6 +81,7 @@ import sys
import inspect
import shutil
import logging
+import warning
from textwrap import indent
@@ -1204,7 +1205,7 @@ def pycontext2sphinx(basepath):
# for member in sorted(unique):
# print(' "%s": ("", False),' % member)
if len(context_type_map) > len(unique):
- raise Exception(
+ warnings.warn(
"Some types are not used: %s" %
str([member for member in context_type_map if member not in unique]))
else: