[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [50601] trunk/blender/source/blender/ editors/interface/interface.c: Correction to rev50582: LABEL could have a1 = 1.0f and in this case a2 would be used as alpha multiplier for icon
Sergey Sharybin
sergey.vfx at gmail.com
Fri Sep 14 18:41:01 CEST 2012
Revision: 50601
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=50601
Author: nazgul
Date: 2012-09-14 16:41:00 +0000 (Fri, 14 Sep 2012)
Log Message:
-----------
Correction to rev50582: LABEL could have a1 = 1.0f and in this case a2 would be used as alpha multiplier for icon
Revision Links:
--------------
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=50582
Modified Paths:
--------------
trunk/blender/source/blender/editors/interface/interface.c
Modified: trunk/blender/source/blender/editors/interface/interface.c
===================================================================
--- trunk/blender/source/blender/editors/interface/interface.c 2012-09-14 15:23:02 UTC (rev 50600)
+++ trunk/blender/source/blender/editors/interface/interface.c 2012-09-14 16:41:00 UTC (rev 50601)
@@ -2595,7 +2595,7 @@
/* we could do some more error checks here */
if ((type & BUTTYPE) == LABEL) {
- BLI_assert((poin != NULL || a1 != 0.0f || a2 != 0.0f || min != 0.0f || max != 0.0f) == FALSE);
+ BLI_assert((poin != NULL || min != 0.0f || max != 0.0f || (a1 == 0.0f && a2 != 0.0f) || (a1 != 0.0f && a1 != 1.0f)) == FALSE);
}
if (type & UI_BUT_POIN_TYPES) { /* a pointer is required */
More information about the Bf-blender-cvs
mailing list