only pick objects in same scene

This commit is contained in:
DasLixou 2024-08-12 17:11:11 +02:00
parent 6b39b5f2b1
commit 2ffadc19eb

View File

@ -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
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):