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:
authorNicholas Bishop <nicholasbishop@gmail.com>2009-06-07 21:36:31 +0400
committerNicholas Bishop <nicholasbishop@gmail.com>2009-06-07 21:36:31 +0400
commit0fc53d8d4cbaa7004b9ced7c0bb8e3988543804e (patch)
tree551aa53d56f095de0b4c0fcd267886f7d585c2c7 /source
parent51740b57b985de11015f4a9cda9dbe9ae108f2c7 (diff)
Use the local context pointer for the multires subdivide operator, rather than searching for a multires modifier in the modifier list.
Diffstat (limited to 'source')
-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 e6b00fa7155..4bcfcc4d5ab 100644
--- a/source/blender/editors/object/object_modifier.c
+++ b/source/blender/editors/object/object_modifier.c
@@ -375,7 +375,8 @@ void OBJECT_OT_modifier_add(wmOperatorType *ot)
static int multires_subdivide_exec(bContext *C, wmOperator *op)
{
Object *ob = CTX_data_active_object(C);
- MultiresModifierData *mmd = find_multires_modifier(ob);
+ PointerRNA ptr = CTX_data_pointer_get(C, "modifier");
+ MultiresModifierData *mmd = (RNA_struct_is_a(ptr.type, &RNA_Modifier))? ptr.data: NULL;
if(mmd) {
multiresModifier_subdivide(mmd, ob, 1, 0, mmd->simple);