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
path: root/source
diff options
context:
space:
mode:
authorPablo Dobarro <pablodp606@gmail.com>2020-05-13 03:58:32 +0300
committerPablo Dobarro <pablodp606@gmail.com>2020-05-13 03:59:31 +0300
commit9253386dcb14063ba2a4d82fa6d4d58090adfd5b (patch)
tree23f1375245e06475c7b5eacb98a5ed9c9896ad10 /source
parent05dd9ca06cc13d0847dbd6115b26df9484019c1e (diff)
Fix T76488: fix mask extract poll function
This was returning true in edit mode, causing the crash Reviewed By: jbakker Maniphest Tasks: T76488 Differential Revision: https://developer.blender.org/D7645
Diffstat (limited to 'source')
-rw-r--r--source/blender/editors/mesh/editmesh_mask_extract.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/mesh/editmesh_mask_extract.c b/source/blender/editors/mesh/editmesh_mask_extract.c
index 3a0a028468d..c02ef9835a0 100644
--- a/source/blender/editors/mesh/editmesh_mask_extract.c
+++ b/source/blender/editors/mesh/editmesh_mask_extract.c
@@ -67,10 +67,10 @@ static bool paint_mask_extract_poll(bContext *C)
return false;
}
else {
- return true;
+ return ED_operator_object_active_editable_mesh(C);
}
}
- return ED_operator_object_active_editable_mesh(C);
+ return false;
}
static int paint_mask_extract_exec(bContext *C, wmOperator *op)