From e47fe1a4bd773d9a2bd5a94679ff983d5ff887e7 Mon Sep 17 00:00:00 2001 From: DasLixou Date: Thu, 22 Aug 2024 19:03:58 +0200 Subject: [PATCH] didn't meant to commit that --- tools/blenvy/add_ons/bevy_components/registry/registry.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/blenvy/add_ons/bevy_components/registry/registry.py b/tools/blenvy/add_ons/bevy_components/registry/registry.py index 59941e5..0d3b210 100644 --- a/tools/blenvy/add_ons/bevy_components/registry/registry.py +++ b/tools/blenvy/add_ons/bevy_components/registry/registry.py @@ -26,7 +26,7 @@ def property_group_from_infos(property_group_name, property_group_parameters): return (property_group_pointer, property_group_class) def is_entity_poll(self, object): - return True # TODO: only select `object.type`s that get converted to entities and maybe something against other collection(instances)? + return bpy.context.scene in object.users_scene # TODO: only select `object.type`s that get converted to entities and maybe something against other collection(instances)? # this is where we store the information for all available components class ComponentsRegistry(PropertyGroup):