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-26 13:16:47 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-03-26 13:16:47 +0300
commitce3b78c73a7ccc16fdccf7decedb5d1578dfdf0a (patch)
tree87f1a9c41ebe6f74806f1ae76206f1d328c85700 /source/blender/editors/space_outliner/outliner_utils.c
parent5279d118c2ddee0e6fef66aaf78452c1b302dd42 (diff)
Cleanup: style, use braces for editor/spaces
Diffstat (limited to 'source/blender/editors/space_outliner/outliner_utils.c')
-rw-r--r--source/blender/editors/space_outliner/outliner_utils.c19
1 files changed, 14 insertions, 5 deletions
diff --git a/source/blender/editors/space_outliner/outliner_utils.c b/source/blender/editors/space_outliner/outliner_utils.c
index 3afb4f4d75a..a44a6e605de 100644
--- a/source/blender/editors/space_outliner/outliner_utils.c
+++ b/source/blender/editors/space_outliner/outliner_utils.c
@@ -91,9 +91,13 @@ TreeElement *outliner_find_tree_element(ListBase *lb, const TreeStoreElem *store
{
TreeElement *te, *tes;
for (te = lb->first; te; te = te->next) {
- if (te->store_elem == store_elem) return te;
+ if (te->store_elem == store_elem) {
+ return te;
+ }
tes = outliner_find_tree_element(&te->subtree, store_elem);
- if (tes) return tes;
+ if (tes) {
+ return tes;
+ }
}
return NULL;
}
@@ -120,12 +124,15 @@ TreeElement *outliner_find_tse(SpaceOutliner *soops, const TreeStoreElem *tse)
{
TreeStoreElem *tselem;
- if (tse->id == NULL) return NULL;
+ if (tse->id == NULL) {
+ return NULL;
+ }
/* check if 'tse' is in treestore */
tselem = BKE_outliner_treehash_lookup_any(soops->treehash, tse->type, tse->nr, tse->id);
- if (tselem)
+ if (tselem) {
return outliner_find_tree_element(&soops->tree, tselem);
+ }
return NULL;
}
@@ -192,7 +199,9 @@ ID *outliner_search_back(SpaceOutliner *UNUSED(soops), TreeElement *te, short id
while (te) {
tselem = TREESTORE(te);
- if (tselem->type == 0 && te->idcode == idcode) return tselem->id;
+ if (tselem->type == 0 && te->idcode == idcode) {
+ return tselem->id;
+ }
te = te->parent;
}
return NULL;