[Bf-blender-cvs] [f6a1ce2c8c] temp-select-pick: minor correction
Campbell Barton
noreply at git.blender.org
Mon Mar 6 08:41:46 CET 2017
Commit: f6a1ce2c8ca9f99832722fab9f75a9b18d476e4f
Author: Campbell Barton
Date: Sat Mar 4 12:56:45 2017 +1100
Branches: temp-select-pick
https://developer.blender.org/rBf6a1ce2c8ca9f99832722fab9f75a9b18d476e4f
minor correction
===================================================================
M source/blender/gpu/intern/gpu_select.c
===================================================================
diff --git a/source/blender/gpu/intern/gpu_select.c b/source/blender/gpu/intern/gpu_select.c
index a1f60ce181..11beaab75c 100644
--- a/source/blender/gpu/intern/gpu_select.c
+++ b/source/blender/gpu/intern/gpu_select.c
@@ -328,12 +328,12 @@ unsigned int GPU_select_end(void)
/* Partially de-duplicating copy,
* when contiguous ID's are found - update their closest depth.
- * This isn't essential but means there is lest data to sort. */
+ * This isn't essential but means there is less data to sort. */
{
DepthID *depth_last = NULL;
for (unsigned int i = 0; i < qsd->rect_len; i++) {
const unsigned int id = qsd->rect_id[i];
- if (qsd->rect_id[i] != 0xffffffff) {
+ if (id != 0xffffffff) {
const float depth = *((float *)&qsd->rect_depth[i]);
if (depth_last == NULL || depth_last->id != id) {
DepthID *d = &depth_data[depth_len++];
More information about the Bf-blender-cvs
mailing list