OK, several of us have been trying to figure this out with no luck. Why is it when creating a pointer property the eye dropper ignores the poll.
This shows only mesh objects ,but the eye dropper can select objects that is not a mesh.
def filter_mesh_objects(self, object): return object.type == 'MESH' def register(): bpy.types.Scene.my_object_search = bpy.props.PointerProperty( type=bpy.types.Object, poll=filter_mesh_objects )
I came across this ,but it doesn’t really help to solve this issue. The only thing I can get from that is maybe using “update”. How exactly do you use update to prevent the eye dropper from selecting anything ,but mesh objects?