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:
-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;
}