diff options
Diffstat (limited to 'release/scripts/modules/bpy_types.py')
-rw-r--r-- | release/scripts/modules/bpy_types.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/release/scripts/modules/bpy_types.py b/release/scripts/modules/bpy_types.py index 43ee785438b..a30f9d1dd1d 100644 --- a/release/scripts/modules/bpy_types.py +++ b/release/scripts/modules/bpy_types.py @@ -29,6 +29,7 @@ bpy_types.BlendDataLibraries.load = _bpy._library_load bpy_types.BlendDataLibraries.write = _bpy._library_write bpy_types.BlendData.user_map = _bpy._rna_id_collection_user_map bpy_types.BlendData.batch_remove = _bpy._rna_id_collection_batch_remove +bpy_types.BlendData.orphans_purge = _bpy._rna_id_collection_orphans_purge class Context(StructRNA): @@ -783,7 +784,10 @@ class _GenericUI: for func in draw_ls._draw_funcs: # Begin 'owner_id' filter. - if owner_names is not None: + # Exclude Import/Export menus from this filtering (io addons should always show there) + if not getattr(self, "bl_owner_use_filter", True): + pass + elif owner_names is not None: owner_id = getattr(func, "_owner", None) if owner_id is not None: if func._owner not in owner_names: |