PyDocs: quiet context member warning without experimental features

This commit is contained in:
Campbell Barton
2025-06-06 00:33:01 +00:00
parent e8afe173a0
commit db22e6cb8b

View File

@@ -1228,7 +1228,6 @@ context_type_map = {
"particle_system": [("ParticleSystem", False)],
"particle_system_editable": [("ParticleSystem", False)],
"property": [("AnyType", False), ("str", False), ("int", False)],
"pointcloud": [("PointCloud", False)],
"pose_bone": [("PoseBone", False)],
"pose_object": [("Object", False)],
"scene": [("Scene", False)],
@@ -1276,6 +1275,13 @@ context_type_map = {
"world": [("World", False)],
}
if bpy.app.build_options.experimental_features:
for key, value in {
"pointcloud": [("PointCloud", False)],
}.items():
assert key not in context_type_map, "Duplicate, the member must be removed from one of the dictionaries"
context_type_map[key] = value
def pycontext2sphinx(basepath):
# Only use once. very irregular.