Blender Git Loki
Git Commits -> Revision 6583fb6
Revision 6583fb6 by Jacques Lucke (master) June 1, 2021, 13:25 (GMT) |
Geometry Nodes: add empty material slot to new meshes This fixes T88455 by adding an empty material slot to newly generated meshes. This allows the object to overwrite the "default" material without any extra nodes. Technically, all polygons reference the material index 0 already, so it makes sense to add a material slot for this material index. Differential Revision: https://developer.blender.org/D11439 |
Commit Details:
Full Hash: 6583fb67c6e1e5d714d723a09312e9dd25e02152
Parent Commit: 8a63466
Lines Changed: +37, -0
12 Modified Paths:
/source/blender/blenkernel/BKE_material.h (+1, -0) (Diff)
/source/blender/blenkernel/intern/material.c (+16, -0) (Diff)
/source/blender/nodes/geometry/nodes/node_geo_curve_to_mesh.cc (+2, -0) (Diff)
/source/blender/nodes/geometry/nodes/node_geo_mesh_primitive_circle.cc (+2, -0) (Diff)
/source/blender/nodes/geometry/nodes/node_geo_mesh_primitive_cone.cc (+2, -0) (Diff)
/source/blender/nodes/geometry/nodes/node_geo_mesh_primitive_cube.cc (+2, -0) (Diff)
/source/blender/nodes/geometry/nodes/node_geo_mesh_primitive_cylinder.cc (+2, -0) (Diff)
/source/blender/nodes/geometry/nodes/node_geo_mesh_primitive_grid.cc (+2, -0) (Diff)
/source/blender/nodes/geometry/nodes/node_geo_mesh_primitive_ico_sphere.cc (+2, -0) (Diff)
/source/blender/nodes/geometry/nodes/node_geo_mesh_primitive_line.cc (+2, -0) (Diff)
/source/blender/nodes/geometry/nodes/node_geo_mesh_primitive_uv_sphere.cc (+2, -0) (Diff)
/source/blender/nodes/geometry/nodes/node_geo_volume_to_mesh.cc (+2, -0) (Diff)
/source/blender/blenkernel/intern/material.c (+16, -0) (Diff)
/source/blender/nodes/geometry/nodes/node_geo_curve_to_mesh.cc (+2, -0) (Diff)
/source/blender/nodes/geometry/nodes/node_geo_mesh_primitive_circle.cc (+2, -0) (Diff)
/source/blender/nodes/geometry/nodes/node_geo_mesh_primitive_cone.cc (+2, -0) (Diff)
/source/blender/nodes/geometry/nodes/node_geo_mesh_primitive_cube.cc (+2, -0) (Diff)
/source/blender/nodes/geometry/nodes/node_geo_mesh_primitive_cylinder.cc (+2, -0) (Diff)
/source/blender/nodes/geometry/nodes/node_geo_mesh_primitive_grid.cc (+2, -0) (Diff)
/source/blender/nodes/geometry/nodes/node_geo_mesh_primitive_ico_sphere.cc (+2, -0) (Diff)
/source/blender/nodes/geometry/nodes/node_geo_mesh_primitive_line.cc (+2, -0) (Diff)
/source/blender/nodes/geometry/nodes/node_geo_mesh_primitive_uv_sphere.cc (+2, -0) (Diff)
/source/blender/nodes/geometry/nodes/node_geo_volume_to_mesh.cc (+2, -0) (Diff)