System Information
Operating system: Windows-10-10.0.19044-SP0 64 Bits
Graphics card: NVIDIA GeForce GTX 1080/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 512.15
Blender Version
Broken: version: 3.1.2, branch: master, commit date: 2022-03-31 17:40, hash: rBcc66d1020c3b
Worked: 3.0.1
Short description of error
Changing the normals of a mesh via the Python API (with mesh.vertices[x].normal) does not modify the orientation of dupli vert instances placed on each vertex of that mesh. It assumed there are no edges nor faces, only verts for instances placement.
Exact steps for others to reproduce the error
- create a monkey object/mesh
- scale it down 2x or 3x to better see the results later
- create a plane object/mesh
- delete all edges and faces in the plane mesh, only keep its verts
- make the plane the parent object of monkey
- enable dupli vert instances on the plane object, vertices mode, and enable "Align to vertex normal"
- make sure you are in object mode, open a python console panel, and type:
m = bpy.data.meshes['Plane']
m.vertices[0].normal = 1,0,0
- Notice nothing changes in the viewport, despite vertex 0 has the new normal correctly affected. All verts point towards the local origin by default.
This bug makes it impossible to place lots of instances objects in a scene using only vertices, I use it a lot.