[Bf-blender-cvs] [e2f8970] soc-2016-pbvh-painting: Changed PBVH material to match sculpt mode.

Nathan Vollmer noreply at git.blender.org
Wed May 25 00:23:36 CEST 2016


Commit: e2f8970d50d0f11c1dca828a3a348e9478709da3
Author: Nathan Vollmer
Date:   Tue May 24 16:23:32 2016 -0600
Branches: soc-2016-pbvh-painting
https://developer.blender.org/rBe2f8970d50d0f11c1dca828a3a348e9478709da3

Changed PBVH material to match sculpt mode.

===================================================================

M	source/blender/editors/space_view3d/drawmesh.c

===================================================================

diff --git a/source/blender/editors/space_view3d/drawmesh.c b/source/blender/editors/space_view3d/drawmesh.c
index 55e0d37..88f51a8 100644
--- a/source/blender/editors/space_view3d/drawmesh.c
+++ b/source/blender/editors/space_view3d/drawmesh.c
@@ -1377,7 +1377,7 @@ void draw_mesh_paint(View3D *v3d, RegionView3D *rv3d,
 				float(*face_nors)[3] = CustomData_get_layer(&dm->polyData, CD_NORMAL);
 
 				BKE_pbvh_draw(ob->sculpt->pbvh, NULL, face_nors,
-					GPU_object_material_bind, false, false);
+					GPU_object_material_visible, false, false);
 				glShadeModel(GL_FLAT);
 			}
 		}




More information about the Bf-blender-cvs mailing list