Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2019-03-27 17:11:28 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-03-27 17:14:03 +0300
commit73b55a5508c6f3e9bb7b59d2d903ac584518eccc (patch)
treed7fdb2fd47bf743d3a7bc6a5edfccbd25b8175dd /source/blender/draw/intern/draw_common.c
parent56b06ee83afba38099fb7affc260885a613a3779 (diff)
Cleanup: style, use braces for draw
Diffstat (limited to 'source/blender/draw/intern/draw_common.c')
-rw-r--r--source/blender/draw/intern/draw_common.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/source/blender/draw/intern/draw_common.c b/source/blender/draw/intern/draw_common.c
index 49cc6669ba5..573b906413f 100644
--- a/source/blender/draw/intern/draw_common.c
+++ b/source/blender/draw/intern/draw_common.c
@@ -1003,11 +1003,11 @@ int DRW_object_wire_theme_get(Object *ob, ViewLayer *view_layer, float **r_color
theme_id = (active) ? TH_ACTIVE : TH_SELECT;
}
else {
- if (ob->type == OB_LAMP) theme_id = TH_LIGHT;
- 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 */
+ if (ob->type == OB_LAMP) { theme_id = TH_LIGHT; }
+ 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 */
}
}