diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-06-25 13:02:57 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-06-25 13:06:51 +0300 |
commit | 29c106924408a508b2f37af9e09d9eb46adc6fad (patch) | |
tree | 1858cfeb59d259a434da39848ee130ae8aa63627 /source/blender/makesrna/intern/rna_userdef.c | |
parent | 7a4d5b78ea061196f7bf1550928680e9f094e38b (diff) |
Cleanup: code style
Diffstat (limited to 'source/blender/makesrna/intern/rna_userdef.c')
-rw-r--r-- | source/blender/makesrna/intern/rna_userdef.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/source/blender/makesrna/intern/rna_userdef.c b/source/blender/makesrna/intern/rna_userdef.c index e4bedf53d72..4190303beb9 100644 --- a/source/blender/makesrna/intern/rna_userdef.c +++ b/source/blender/makesrna/intern/rna_userdef.c @@ -680,7 +680,7 @@ static void rna_StudioLights_remove(UserDef *UNUSED(userdef), StudioLight *studi BKE_studiolight_remove(studio_light); } -static StudioLight* rna_StudioLights_new(UserDef *UNUSED(userdef), const char* path, int orientation) +static StudioLight *rna_StudioLights_new(UserDef *UNUSED(userdef), const char *path, int orientation) { return BKE_studiolight_new(path, orientation); } @@ -724,8 +724,7 @@ static void rna_UserDef_studiolight_path_irr_cache_get(PointerRNA *ptr, char *va static int rna_UserDef_studiolight_path_irr_cache_length(PointerRNA *ptr) { StudioLight *sl = (StudioLight *)ptr->data; - if (sl->path_irr_cache) - { + if (sl->path_irr_cache) { return strlen(sl->path_irr_cache); } return 0; @@ -744,8 +743,7 @@ static void rna_UserDef_studiolight_path_sh_cache_get(PointerRNA *ptr, char *val static int rna_UserDef_studiolight_path_sh_cache_length(PointerRNA *ptr) { StudioLight *sl = (StudioLight *)ptr->data; - if (sl->path_sh_cache) - { + if (sl->path_sh_cache) { return strlen(sl->path_sh_cache); } return 0; @@ -777,8 +775,7 @@ static void rna_UserDef_studiolight_spherical_harmonics_coefficients_get(Pointer { StudioLight *sl = (StudioLight *)ptr->data; float *value = values; - for (int i = 0; i < STUDIOLIGHT_SPHERICAL_HARMONICS_COMPONENTS; i++) - { + for (int i = 0; i < STUDIOLIGHT_SPHERICAL_HARMONICS_COMPONENTS; i++) { copy_v3_v3(value, sl->spherical_harmonics_coefs[i]); value += 3; } |