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:
authorNicholas Bishop <nicholasbishop@gmail.com>2012-08-18 23:01:37 +0400
committerNicholas Bishop <nicholasbishop@gmail.com>2012-08-18 23:01:37 +0400
commit33fa4364475898481093e6f60793b44d50488963 (patch)
tree87cd6e52d8060571dcfa1eee4b52283275a05649 /source/blender/editors/object/object_modifier.c
parent4301df952ebb308c5cba5599609dffba5278f84c (diff)
Fix incorrect error test when removing a modifier
r49989 had the test reversed
Diffstat (limited to 'source/blender/editors/object/object_modifier.c')
-rw-r--r--source/blender/editors/object/object_modifier.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/object/object_modifier.c b/source/blender/editors/object/object_modifier.c
index b82363abb4a..bbc7a6ace7d 100644
--- a/source/blender/editors/object/object_modifier.c
+++ b/source/blender/editors/object/object_modifier.c
@@ -271,7 +271,7 @@ static int object_modifier_remove(Main *bmain, Object *ob, ModifierData *md,
/* It seems on rapid delete it is possible to
* get called twice on same modifier, so make
* sure it is in list. */
- if (BLI_findindex(&ob->modifiers, md) != -1) {
+ if (BLI_findindex(&ob->modifiers, md) == -1) {
return 0;
}