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>2009-08-22 05:01:53 +0400
committerNicholas Bishop <nicholasbishop@gmail.com>2009-08-22 05:01:53 +0400
commit095ec3a6e9357e6ce14fd200396ea221ac88e3b6 (patch)
treebdb54c5242dc3be9e523f27bff65e71f8ab995a7 /source/blender/editors/object
parent2355130c3a6c698eaccf279d2b626809e95a48d6 (diff)
2.5/Multires:
* Disabled multires subdivide button in editmode (again) SVN weirdness: I already did this in r22447. Somehow it got changed back -- but I can't find any log of it getting reverted, either in my email or on p.b.o. This is extremely weird!
Diffstat (limited to 'source/blender/editors/object')
-rw-r--r--source/blender/editors/object/object_modifier.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/editors/object/object_modifier.c b/source/blender/editors/object/object_modifier.c
index 3785e17f67c..1b20f90360a 100644
--- a/source/blender/editors/object/object_modifier.c
+++ b/source/blender/editors/object/object_modifier.c
@@ -699,7 +699,8 @@ static int multires_subdivide_exec(bContext *C, wmOperator *op)
static int multires_subdivide_poll(bContext *C)
{
- return (CTX_data_pointer_get_type(C, "modifier", &RNA_MultiresModifier).data != NULL);
+ return (CTX_data_pointer_get_type(C, "modifier", &RNA_MultiresModifier).data != NULL) &&
+ CTX_data_edit_object(C) == NULL;
}
void OBJECT_OT_multires_subdivide(wmOperatorType *ot)