Fix T43685: New pointiness attribute error with auto-smooth enabled
Simple fix: all vertex attributes should be filled in before split.
This commit is contained in:
parent
587d8771e0
commit
cdc1dab073
Notes:
blender-bot
2023-02-14 09:48:25 +01:00
Referenced by issue #43685, Pointiness bug with multiple Subsurf modifier
|
@ -466,6 +466,9 @@ static void create_mesh(Scene *scene, Mesh *mesh, BL::Mesh b_mesh, const vector<
|
|||
generated[i++] = get_float3(v->undeformed_co())*size - loc;
|
||||
}
|
||||
|
||||
/* Create needed vertex attributes. */
|
||||
attr_create_pointiness(scene, mesh, b_mesh);
|
||||
|
||||
/* create faces */
|
||||
vector<int> nverts(numfaces);
|
||||
int fi = 0, ti = 0;
|
||||
|
@ -522,7 +525,6 @@ static void create_mesh(Scene *scene, Mesh *mesh, BL::Mesh b_mesh, const vector<
|
|||
*/
|
||||
attr_create_vertex_color(scene, mesh, b_mesh, nverts);
|
||||
attr_create_uv_map(scene, mesh, b_mesh, nverts);
|
||||
attr_create_pointiness(scene, mesh, b_mesh);
|
||||
|
||||
/* for volume objects, create a matrix to transform from object space to
|
||||
* mesh texture space. this does not work with deformations but that can
|
||||
|
|
Loading…
Reference in New Issue