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>2014-04-01 04:34:00 +0400
committerCampbell Barton <ideasman42@gmail.com>2014-04-01 08:22:28 +0400
commit617557b08ea94e2b65a1697ddf0b79651204d92b (patch)
tree50b24bab075b42fa20456140c9a9681cfb01325b /source/blender/editors/util
parent2c00ecc738c04dc5dc22d4a6b81a1e937526ba6d (diff)
Code cleanup: remove TRUE/FALSE & WITH_BOOL_COMPAT define
Diffstat (limited to 'source/blender/editors/util')
-rw-r--r--source/blender/editors/util/ed_util.c2
-rw-r--r--source/blender/editors/util/editmode_undo.c4
-rw-r--r--source/blender/editors/util/undo.c6
3 files changed, 6 insertions, 6 deletions
diff --git a/source/blender/editors/util/ed_util.c b/source/blender/editors/util/ed_util.c
index 246094a337a..887cc430f69 100644
--- a/source/blender/editors/util/ed_util.c
+++ b/source/blender/editors/util/ed_util.c
@@ -163,7 +163,7 @@ void ED_editors_flush_edits(const bContext *C, bool for_render)
else {
/* Set reorder=false so that saving the file doesn't reorder
* the BMesh's elements */
- sculptsession_bm_to_me(obact, FALSE);
+ sculptsession_bm_to_me(obact, false);
}
}
}
diff --git a/source/blender/editors/util/editmode_undo.c b/source/blender/editors/util/editmode_undo.c
index caa5e7659f8..9be0d68e573 100644
--- a/source/blender/editors/util/editmode_undo.c
+++ b/source/blender/editors/util/editmode_undo.c
@@ -212,9 +212,9 @@ static void undo_clean_stack(bContext *C)
if (uel->type == obedit->type) {
if (strcmp(uel->id.name, obedit->id.name) == 0) {
if (uel->validate_undo == NULL)
- is_valid = TRUE;
+ is_valid = true;
else if (uel->validate_undo(uel->undodata, editdata))
- is_valid = TRUE;
+ is_valid = true;
}
}
if (is_valid)
diff --git a/source/blender/editors/util/undo.c b/source/blender/editors/util/undo.c
index 7aa5c7ee766..434f1e30188 100644
--- a/source/blender/editors/util/undo.c
+++ b/source/blender/editors/util/undo.c
@@ -482,7 +482,7 @@ static EnumPropertyItem *rna_undo_itemf(bContext *C, int undosys, int *totitem)
EnumPropertyItem item_tmp = {0}, *item = NULL;
int active, i = 0;
- while (TRUE) {
+ while (true) {
const char *name = NULL;
if (undosys == UNDOSYSTEM_PARTICLE) {
@@ -531,13 +531,13 @@ static int undo_history_invoke(bContext *C, wmOperator *op, const wmEvent *UNUSE
if (totitem > 0) {
uiPopupMenu *pup = uiPupMenuBegin(C, RNA_struct_ui_name(op->type->srna), ICON_NONE);
uiLayout *layout = uiPupMenuLayout(pup);
- uiLayout *split = uiLayoutSplit(layout, 0.0f, FALSE);
+ uiLayout *split = uiLayoutSplit(layout, 0.0f, false);
uiLayout *column = NULL;
int i, c;
for (c = 0, i = totitem - 1; i >= 0; i--, c++) {
if ( (c % 20) == 0)
- column = uiLayoutColumn(split, FALSE);
+ column = uiLayoutColumn(split, false);
if (item[i].identifier)
uiItemIntO(column, item[i].name, item[i].icon, op->type->idname, "item", item[i].value);