diff options
author | Campbell Barton <ideasman42@gmail.com> | 2020-06-05 11:06:44 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2020-06-05 11:09:00 +0300 |
commit | f2d5c539660c2c817b0dba3012ba6f31c8251f0a (patch) | |
tree | 9de0a9ccfc58f5d19c00c94f0607827fdd3efa86 /release/scripts | |
parent | e8b8e16b24ade2ca0861cb40a8b4e800a3fb0729 (diff) |
Fix accessing online manual for PropertyGroups
Alternate fix for the issue raised in D7837
Diffstat (limited to 'release/scripts')
-rw-r--r-- | release/scripts/startup/bl_operators/wm.py | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/release/scripts/startup/bl_operators/wm.py b/release/scripts/startup/bl_operators/wm.py index 633118c3b2e..4c4736cd669 100644 --- a/release/scripts/startup/bl_operators/wm.py +++ b/release/scripts/startup/bl_operators/wm.py @@ -1016,10 +1016,15 @@ def _wm_doc_get_id(doc_id, do_url=True, url_prefix=""): else: rna = "bpy.ops.%s.%s" % (class_name, class_prop) else: - # an RNA setting, common case - rna_class = getattr(bpy.types, class_name) + # An RNA setting, common case. - # detect if this is a inherited member and use that name instead + # Check the built-in RNA types. + rna_class = getattr(bpy.types, class_name, None) + if rna_class is None: + # Check class for dynamically registered types. + rna_class = bpy.types.PropertyGroup.bl_rna_get_subclass_py(class_name) + + # Detect if this is a inherited member and use that name instead. rna_parent = rna_class.bl_rna rna_prop = rna_parent.properties.get(class_prop) if rna_prop: |