loader setting overrides are added for both Loader and SubsetLoader classes

This commit is contained in:
iLLiCiTiT 2021-05-07 19:59:42 +02:00
parent c03caf8059
commit 557352f7ed

View file

@ -194,7 +194,7 @@ def set_plugin_attributes_from_settings(
# map plugin superclass to preset json. Currenly suppoted is load and
# create (avalon.api.Loader and avalon.api.Creator)
plugin_type = None
if superclass.__name__.split(".")[-1] == "Loader":
if superclass.__name__.split(".")[-1] in ("Loader", "SubsetLoader"):
plugin_type = "load"
elif superclass.__name__.split(".")[-1] == "Creator":
plugin_type = "create"