[Bf-blender-cvs] [38de54c1ede] greasepencil-object: GPencil: Cleanup unused code

Antonio Vazquez noreply at git.blender.org
Sat Feb 15 13:54:16 CET 2020


Commit: 38de54c1ede4805712a5aadec15fd4372b21fff8
Author: Antonio Vazquez
Date:   Sat Feb 15 13:54:10 2020 +0100
Branches: greasepencil-object
https://developer.blender.org/rB38de54c1ede4805712a5aadec15fd4372b21fff8

GPencil: Cleanup unused code

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

M	source/blender/blenkernel/intern/paint.c

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

diff --git a/source/blender/blenkernel/intern/paint.c b/source/blender/blenkernel/intern/paint.c
index 44fcee6825c..78b02acbb53 100644
--- a/source/blender/blenkernel/intern/paint.c
+++ b/source/blender/blenkernel/intern/paint.c
@@ -703,18 +703,6 @@ static int palettecolor_compare_hsv(const void *a1, const void *a2)
     return -1;
   }
 
-#if 0
-  /* Luminance. */
-  float lum1 = (0.2126f * ps1->rgb[0] + 0.7152f * ps1->rgb[1] + 0.0722f * ps1->rgb[2]);
-  float lum2 = (0.2126f * ps2->rgb[0] + 0.7152f * ps2->rgb[1] + 0.0722f * ps2->rgb[2]);
-  if (lum1 > lum2) {
-    return 1;
-  }
-  else if (lum1 < lum2) {
-    return -1;
-  }
-#endif
-
   /* Saturation. */
   if (ps1->s > ps2->s) {
     return 1;



More information about the Bf-blender-cvs mailing list