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:
authorBrecht Van Lommel <brechtvanlommel@pandora.be>2010-03-08 18:44:26 +0300
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2010-03-08 18:44:26 +0300
commit59db9a406116f05c4bf16ef1f25b3ada82e51a69 (patch)
tree6b26d3ca2a303a5a4362c5274a12e6b6d9905bef
parent23cfce769153be3ca990e1b11732738620192b5b (diff)
Bugfix: multires save external was not working. Just disabled operator poll
for now, but there's actually a deeper issue here, the modifier is no longer in context after the file browser, not sure how to solve this.
-rw-r--r--source/blender/editors/object/object_modifier.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/source/blender/editors/object/object_modifier.c b/source/blender/editors/object/object_modifier.c
index 4ab55affe44..f02cefecaaa 100644
--- a/source/blender/editors/object/object_modifier.c
+++ b/source/blender/editors/object/object_modifier.c
@@ -883,6 +883,9 @@ static int multires_save_external_exec(bContext *C, wmOperator *op)
Mesh *me= (ob)? ob->data: op->customdata;
char path[FILE_MAX];
+ if(!me)
+ return OPERATOR_CANCELLED;
+
if(CustomData_external_test(&me->fdata, CD_MDISPS))
return OPERATOR_CANCELLED;
@@ -925,7 +928,7 @@ void OBJECT_OT_multires_save_external(wmOperatorType *ot)
ot->description= "Save displacements to an external file";
ot->idname= "OBJECT_OT_multires_save_external";
- ot->poll= multires_poll;
+ // XXX modifier no longer in context after file browser .. ot->poll= multires_poll;
ot->exec= multires_save_external_exec;
ot->invoke= multires_save_external_invoke;