Blender Git Loki

Git Commits -> Revision 45897f1

Revision 45897f1 by Luca Rood (master)
July 10, 2017, 12:43 (GMT)
Fix T51931: VBO not updating when UVs are added to shader node tree

UVs need specific data in the VBO, which is not computed unless the
shaders assigned to the mesh actually use UVs. When adding UVs to the
shader, the VBOs were not being recomputed to include the required data.

This adds a DEG relation between the shader and the mesh, and recomputes
the required data if the shader changed.

Thanks Sergey, for all the DEG stuff...

Commit Details:

Full Hash: 45897f12f8c35a455d5a33dbb9a8c0589d04e8b9
Parent Commit: d33cacf
Lines Changed: +56, -4

9 Modified Paths:

/source/blender/blenkernel/BKE_mesh.h (+1, -0) (Diff)
/source/blender/blenkernel/BKE_object.h (+2, -0) (Diff)
/source/blender/blenkernel/intern/object_update.c (+8, -0) (Diff)
/source/blender/depsgraph/intern/builder/deg_builder_nodes.cc (+13, -4) (Diff)
/source/blender/depsgraph/intern/builder/deg_builder_relations.cc (+9, -0) (Diff)
/source/blender/depsgraph/intern/depsgraph_types.h (+3, -0) (Diff)
/source/blender/depsgraph/intern/depsgraph_type_defines.cc (+2, -0) (Diff)
/source/blender/depsgraph/intern/nodes/deg_node.cc (+8, -0) (Diff)
/source/blender/draw/intern/draw_cache_impl_mesh.c (+10, -0) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021