I’m writing a simple operator and noticed that if I delete the default Cube from the scene, and add a Sphere, both the cube and sphere appear in the mesh collection. Here’s my code:
for me in bpy.data.meshes: print('!! '+me.name)
Has anyone got any ideas why ‘Cube’ is listed as a mesh when I’ve deleted it, and how I can (properly?) iterate through the meshes to only meshes that are valid (and seen) in my scene?