[Bf-blender-cvs] [e43597446ec] blender2.8: Fix hair width changing

Dalai Felinto noreply at git.blender.org
Tue May 16 14:55:42 CEST 2017


Commit: e43597446ec28f072b27c4ed7fb6f94578b4b8e0
Author: Dalai Felinto
Date:   Tue May 16 14:52:49 2017 +0200
Branches: blender2.8
https://developer.blender.org/rBe43597446ec28f072b27c4ed7fb6f94578b4b8e0

Fix hair width changing

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

M	source/blender/draw/engines/clay/clay_engine.c

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

diff --git a/source/blender/draw/engines/clay/clay_engine.c b/source/blender/draw/engines/clay/clay_engine.c
index 20116f909cc..29753868deb 100644
--- a/source/blender/draw/engines/clay/clay_engine.c
+++ b/source/blender/draw/engines/clay/clay_engine.c
@@ -701,7 +701,9 @@ static void CLAY_cache_init(void *vedata)
 
 	/* Hair Pass */
 	{
-		psl->hair_pass = DRW_pass_create("Hair Pass", DRW_STATE_WRITE_COLOR | DRW_STATE_WRITE_DEPTH | DRW_STATE_DEPTH_LESS);
+		psl->hair_pass = DRW_pass_create(
+		                     "Hair Pass",
+		                     DRW_STATE_WRITE_COLOR | DRW_STATE_WRITE_DEPTH | DRW_STATE_DEPTH_LESS | DRW_STATE_WIRE);
 		stl->storage->hair_ubo_current_id = 0;
 		memset(stl->storage->hair_shgrps, 0, sizeof(DRWShadingGroup *) * MAX_CLAY_MAT);
 	}




More information about the Bf-blender-cvs mailing list