If you set an id on vertices in GN with a
Set ID node, and then use a
Merge by Distance node (and maybe other meshes which cause attributes to be combined) the “id” attribute is handled like a default integer attribute. I.E. it is averaged.
For an “id” attribute this is undesirable imho. It would be better to do what the merge by distance point clouds code path does (pick the id of the first one).
I decided to make this a devtalk post instead of a bugreport as it not technically a bug, and changing it is not backwards compatible with meshes that happen to an attribute named “id”. Should I look into making the mesh code behave like the pointcloud code? I think I know where in the code this is handled…