[Bf-blender-cvs] [376e74f2aaa] blender2.8: Object Mode: Fix incorrect lightprobe wire color when in edit mode.
Clément Foucault
noreply at git.blender.org
Wed Feb 28 02:10:44 CET 2018
Commit: 376e74f2aaa320e281decdcad169fbb8fded114d
Author: Clément Foucault
Date: Wed Feb 28 02:10:38 2018 +0100
Branches: blender2.8
https://developer.blender.org/rB376e74f2aaa320e281decdcad169fbb8fded114d
Object Mode: Fix incorrect lightprobe wire color when in edit mode.
===================================================================
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 681a6a8dabe..1299b1b757b 100644
--- a/source/blender/draw/intern/draw_common.c
+++ b/source/blender/draw/intern/draw_common.c
@@ -481,6 +481,7 @@ int DRW_object_wire_theme_get(Object *ob, ViewLayer *view_layer, float **r_color
else if (ob->type == OB_SPEAKER) theme_id = TH_SPEAKER;
else if (ob->type == OB_CAMERA) theme_id = TH_CAMERA;
else if (ob->type == OB_EMPTY) theme_id = TH_EMPTY;
+ else if (ob->type == OB_LIGHTPROBE) theme_id = TH_EMPTY; /* TODO add lightprobe color */
/* fallback to TH_WIRE */
}
}
More information about the Bf-blender-cvs
mailing list