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 | |
parent | 7a4d5b78ea061196f7bf1550928680e9f094e38b (diff) |
Cleanup: code style
Diffstat (limited to 'source/blender/makesrna')
-rw-r--r-- | source/blender/makesrna/intern/rna_modifier.c | 2 | ||||
-rw-r--r-- | source/blender/makesrna/intern/rna_space.c | 2 | ||||
-rw-r--r-- | source/blender/makesrna/intern/rna_userdef.c | 11 |
3 files changed, 6 insertions, 9 deletions
diff --git a/source/blender/makesrna/intern/rna_modifier.c b/source/blender/makesrna/intern/rna_modifier.c index 1e548339e33..48ebc02cee0 100644 --- a/source/blender/makesrna/intern/rna_modifier.c +++ b/source/blender/makesrna/intern/rna_modifier.c @@ -901,7 +901,7 @@ static const EnumPropertyItem *rna_DataTransferModifier_layers_select_src_itemf( return rna_enum_dt_layers_select_src_items; } - Depsgraph *depsgraph= CTX_data_depsgraph(C); + Depsgraph *depsgraph = CTX_data_depsgraph(C); Scene *scene = CTX_data_scene(C); /* No active here! */ diff --git a/source/blender/makesrna/intern/rna_space.c b/source/blender/makesrna/intern/rna_space.c index e7ff13fb23b..8dab3551efa 100644 --- a/source/blender/makesrna/intern/rna_space.c +++ b/source/blender/makesrna/intern/rna_space.c @@ -2238,7 +2238,7 @@ static void rna_def_space_outliner(BlenderRNA *brna) static const EnumPropertyItem display_mode_items[] = { {SO_SCENES, "SCENES", ICON_SCENE_DATA, "Scenes", "Display scenes and their view layers, collections and objects"}, - {SO_VIEW_LAYER, "VIEW_LAYER",ICON_RENDER_RESULT, "View Layer", "Display collections and objects in the view layer"}, + {SO_VIEW_LAYER, "VIEW_LAYER", ICON_RENDER_RESULT, "View Layer", "Display collections and objects in the view layer"}, {SO_SEQUENCE, "SEQUENCE", ICON_SEQUENCE, "Sequence", "Display sequence data-blocks"}, {SO_LIBRARIES, "LIBRARIES", ICON_FILE_BLEND, "Blender File", "Display data of current file and linked libraries"}, {SO_DATA_API, "DATA_API", ICON_RNA, "Data API", "Display low level Blender data and its properties"}, 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; } |