Page MenuHome

Fix T58842: Add-ons Import/Export entries disapear when enabling Filter Addons option
ClosedPublic

Authored by Philipp Oeser (lichtwerk) on Oct 17 2019, 11:52 AM.

Details

Summary

This removes the 'use_owner' option feature from rB61c8ed40f5df.
(this wasnt working well when addons are enabled and when switching
workspaces)

Now Addon filtering is just bypassed for Import/Export menus.

Not sure if this patch should remove the Import/Export addons from the
filtering list to reduce noise [this would be wrong since addons in this
category sometimes register not only to the Import/Export menus...]

Diff Detail

Repository
rB Blender
Branch
T58842_ (branched from master)
Build Status
Buildable 6487
Build 6487: arc lint + arc unit

Event Timeline

In general we should avoid initializing data in drawing code, it's too prone to errors when the draw code doesn't run.

You may install an import/export add-on after setting the filter.

Think this use_owner option feature from rB61c8ed40f5df897da212b55dadeee252c8d3997b isn't going to work well unless we have a way to initialize it when addons are enabled and when switching workspaces.

It's probably simpler to remove this feature and have a way for import/export menus to bypass this filtering option.

Philipp Oeser (lichtwerk) planned changes to this revision.Oct 28 2019, 3:10 PM

Didnt find a way to initialize this on addon enable, looking into doing the bypass for import/export menus instead...

poke.
Important user friendly feature, that do not work.

remove 'use_owner' feature and just bypass Import/Export Addon filtering in Import/Export menu

Campbell Barton (campbellbarton) added inline comments.
release/scripts/modules/bpy_types.py
787

this could be related by a class variable, eg:

if getattr(self, "bl_ui_no_filter", False):

This revision is now accepted and ready to land.Tue, Feb 4, 1:27 PM

introduce/use bl_owner_use_filter