mirror of
https://github.com/kaosat-dev/Blender_bevy_components_workflow.git
synced 2024-11-21 19:44:18 +00:00
only pick objects in same scene
This commit is contained in:
parent
6b39b5f2b1
commit
2ffadc19eb
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user