[Bf-blender-cvs] [391536ef120] blender2.8: Fix missing edge in shape-to-wire utility

Campbell Barton noreply at git.blender.org
Fri Sep 21 08:11:47 CEST 2018


Commit: 391536ef1208ac536408ceead9e6219b2910edfd
Author: Campbell Barton
Date:   Fri Sep 21 16:08:02 2018 +1000
Branches: blender2.8
https://developer.blender.org/rB391536ef1208ac536408ceead9e6219b2910edfd

Fix missing edge in shape-to-wire utility

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

M	source/blender/gpu/intern/gpu_batch_utils.c

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

diff --git a/source/blender/gpu/intern/gpu_batch_utils.c b/source/blender/gpu/intern/gpu_batch_utils.c
index 0a7f1ca901d..13e615e120b 100644
--- a/source/blender/gpu/intern/gpu_batch_utils.c
+++ b/source/blender/gpu/intern/gpu_batch_utils.c
@@ -202,6 +202,7 @@ GPUBatch *GPU_batch_wire_from_poly_2d_encoded(
 				i++;
 			}
 		}
+		*lines_step++ = lines[lines_len - 1];
 		lines_len = lines_step - lines;
 	}



More information about the Bf-blender-cvs mailing list