[Bf-blender-cvs] [f4d65b0d6ee] master: Docs: update API docs, adding reference to bl_rna_get_subclass.

Campbell Barton noreply at git.blender.org
Mon May 11 07:51:08 CEST 2020


Commit: f4d65b0d6eeab7da5955aacd5eb99e717fbb77d5
Author: Campbell Barton
Date:   Mon May 11 15:26:57 2020 +1000
Branches: master
https://developer.blender.org/rBf4d65b0d6eeab7da5955aacd5eb99e717fbb77d5

Docs: update API docs, adding reference to bl_rna_get_subclass.

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

M	doc/python_api/rst/info_overview.rst

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

diff --git a/doc/python_api/rst/info_overview.rst b/doc/python_api/rst/info_overview.rst
index e341453fe93..562076c6c43 100644
--- a/doc/python_api/rst/info_overview.rst
+++ b/doc/python_api/rst/info_overview.rst
@@ -253,7 +253,13 @@ Registering a class with Blender results in the class definition being loaded in
 where it becomes available alongside existing functionality.
 
 Once this class is loaded you can access it from :mod:`bpy.types`,
-using the bl_idname rather than the classes original name.
+using the ``bl_idname`` rather than the classes original name.
+
+.. note::
+
+   There are some exceptions to this for class names which aren't guarantee to be unique.
+   In this case use: :func:`bpy.types.Struct.bl_rna_get_subclass`.
+
 
 When loading a class, Blender performs sanity checks making sure all required properties and functions are found,
 that properties have the correct type, and that functions have the right number of arguments.



More information about the Bf-blender-cvs mailing list