[Bf-blender-cvs] [8766ab7526f] blender2.8: Fix Lamps, Empties, Cameras and Speakers not using theme colors

Pablo Vazquez noreply at git.blender.org
Thu May 24 12:02:29 CEST 2018


Commit: 8766ab7526fd6ec8d5b48a62a3e519bacaddc102
Author: Pablo Vazquez
Date:   Thu May 24 12:01:25 2018 +0200
Branches: blender2.8
https://developer.blender.org/rB8766ab7526fd6ec8d5b48a62a3e519bacaddc102

Fix Lamps, Empties, Cameras and Speakers not using theme colors

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

M	source/blender/draw/intern/draw_common.c

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

diff --git a/source/blender/draw/intern/draw_common.c b/source/blender/draw/intern/draw_common.c
index b51b15b20ed..c2b00a74dac 100644
--- a/source/blender/draw/intern/draw_common.c
+++ b/source/blender/draw/intern/draw_common.c
@@ -727,10 +727,10 @@ int DRW_object_wire_theme_get(Object *ob, ViewLayer *view_layer, float **r_color
 			case TH_ACTIVE:       *r_color = ts.colorActive; break;
 			case TH_SELECT:       *r_color = ts.colorSelect; break;
 			case TH_TRANSFORM:    *r_color = ts.colorTransform; break;
-			case OB_SPEAKER:      *r_color = ts.colorSpeaker; break;
-			case OB_CAMERA:       *r_color = ts.colorCamera; break;
-			case OB_EMPTY:        *r_color = ts.colorEmpty; break;
-			case OB_LAMP:         *r_color = ts.colorLamp; break;
+			case TH_SPEAKER:      *r_color = ts.colorSpeaker; break;
+			case TH_CAMERA:       *r_color = ts.colorCamera; break;
+			case TH_EMPTY:        *r_color = ts.colorEmpty; break;
+			case TH_LAMP:         *r_color = ts.colorLamp; break;
 			default:              *r_color = ts.colorWire; break;
 		}
 	}
@@ -749,10 +749,10 @@ float *DRW_color_background_blend_get(int theme_id)
 		case TH_ACTIVE:       ret = colors[1]; break;
 		case TH_SELECT:       ret = colors[2]; break;
 		case TH_TRANSFORM:    ret = colors[5]; break;
-		case OB_SPEAKER:      ret = colors[6]; break;
-		case OB_CAMERA:       ret = colors[7]; break;
-		case OB_EMPTY:        ret = colors[8]; break;
-		case OB_LAMP:         ret = colors[9]; break;
+		case TH_SPEAKER:      ret = colors[6]; break;
+		case TH_CAMERA:       ret = colors[7]; break;
+		case TH_EMPTY:        ret = colors[8]; break;
+		case TH_LAMP:         ret = colors[9]; break;
 		default:              ret = colors[10]; break;
 	}



More information about the Bf-blender-cvs mailing list