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>2018-05-30 20:45:03 +0300
committerCampbell Barton <ideasman42@gmail.com>2018-05-30 20:49:33 +0300
commit1f693aefca052918d308082f752f388d487f39b6 (patch)
tree3eaf0eaea889938b2b853e86ee386bc9e5d2df3c /source/blender/makesrna
parent61fc9fcffa591b086ecaeef6d02e99a397b6c7c9 (diff)
Cleanup: style/whitespace
Also use 'uint'.
Diffstat (limited to 'source/blender/makesrna')
-rw-r--r--source/blender/makesrna/intern/rna_space.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/source/blender/makesrna/intern/rna_space.c b/source/blender/makesrna/intern/rna_space.c
index 26cb2241ea5..71f647b7009 100644
--- a/source/blender/makesrna/intern/rna_space.c
+++ b/source/blender/makesrna/intern/rna_space.c
@@ -717,7 +717,7 @@ static void rna_View3DShading_studio_light_orientation_set(PointerRNA *UNUSED(pt
static int rna_View3DShading_studio_light_get(PointerRNA *ptr)
{
View3D *v3d = (View3D *)ptr->data;
- const int flag = v3d->drawtype == OB_MATERIAL? STUDIOLIGHT_ORIENTATION_WORLD: 0;
+ const int flag = (v3d->drawtype == OB_MATERIAL) ? STUDIOLIGHT_ORIENTATION_WORLD : 0;
StudioLight *sl = BKE_studiolight_find(v3d->shading.studio_light, flag);
BLI_strncpy(v3d->shading.studio_light, sl->name, FILE_MAXFILE);
return sl->index;
@@ -747,7 +747,8 @@ static const EnumPropertyItem *rna_View3DShading_studio_light_itemf(
if ((sl->flag & STUDIOLIGHT_EXTERNAL_FILE) == 0) {
/* always show internal lights */
show_studiolight = true;
- } else {
+ }
+ else {
switch (v3d->drawtype) {
case OB_SOLID:
case OB_TEXTURE: