[Bf-blender-cvs] [8f1c1ef] master: Fix T45477 wrong edge selection.

Antony Riakiotakis noreply at git.blender.org
Sun Jul 19 18:04:39 CEST 2015


Commit: 8f1c1ef3a9f310db7f28806a2a441e32f5b56f97
Author: Antony Riakiotakis
Date:   Sun Jul 19 18:04:21 2015 +0200
Branches: master
https://developer.blender.org/rB8f1c1ef3a9f310db7f28806a2a441e32f5b56f97

Fix T45477 wrong edge selection.

Caused by own changes to framebuffer selection code, code was not
packing color ids correctly.

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

M	source/blender/windowmanager/intern/wm_subwindow.c

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

diff --git a/source/blender/windowmanager/intern/wm_subwindow.c b/source/blender/windowmanager/intern/wm_subwindow.c
index 6b286bd..94fe2a6 100644
--- a/source/blender/windowmanager/intern/wm_subwindow.c
+++ b/source/blender/windowmanager/intern/wm_subwindow.c
@@ -461,7 +461,11 @@ void WM_framebuffer_index_set(int index)
 
 void WM_framebuffer_index_get(int index, int *r_col)
 {
-	*r_col = index_to_framebuffer(index);
+	const int col = index_to_framebuffer(index);
+	*r_col = ((col & 0xFF) << 24) | /* red */
+	         (((col >>  8) & 0xFF) << 16) | /* green */
+	         (((col >> 16) & 0xFF) << 8) | /* blue */
+	         0xFF; /* alpha */
 }




More information about the Bf-blender-cvs mailing list