diff options
author | Campbell Barton <ideasman42@gmail.com> | 2010-05-07 13:41:26 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2010-05-07 13:41:26 +0400 |
commit | 70a96a1089899f4f1e8541a56303742e1c192845 (patch) | |
tree | 5ff182cf9e66870011c00d318ebc51ba0318abf6 /source/blender | |
parent | fbb68188dfdc213cf6653fc1a4573c79abd85527 (diff) |
saving multires data didnt get the new filename when the external struct was alredy allocated (making save external fail)
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/blenkernel/intern/customdata.c | 2 | ||||
-rw-r--r-- | source/blender/editors/object/object_modifier.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/blenkernel/intern/customdata.c b/source/blender/blenkernel/intern/customdata.c index a973c33ca54..9ae1c7f05ab 100644 --- a/source/blender/blenkernel/intern/customdata.c +++ b/source/blender/blenkernel/intern/customdata.c @@ -2487,9 +2487,9 @@ void CustomData_external_add(CustomData *data, ID *id, int type, int totelem, co if(!external) { external= MEM_callocN(sizeof(CustomDataExternal), "CustomDataExternal"); - BLI_strncpy(external->filename, filename, sizeof(external->filename)); data->external= external; } + BLI_strncpy(external->filename, filename, sizeof(external->filename)); layer->flag |= CD_FLAG_EXTERNAL|CD_FLAG_IN_MEMORY; } diff --git a/source/blender/editors/object/object_modifier.c b/source/blender/editors/object/object_modifier.c index 47816a5aaec..4cfed57f9c7 100644 --- a/source/blender/editors/object/object_modifier.c +++ b/source/blender/editors/object/object_modifier.c @@ -1021,8 +1021,8 @@ static int multires_save_external_exec(bContext *C, wmOperator *op) return OPERATOR_CANCELLED; RNA_string_get(op->ptr, "path", path); - if(G.save_over) - BLI_path_rel(path, G.sce); + + /* BLI_path_rel(path, G.sce); */ /* TODO, relative path operator option */ CustomData_external_add(&me->fdata, &me->id, CD_MDISPS, me->totface, path); CustomData_external_write(&me->fdata, &me->id, CD_MASK_MESH, me->totface, 0); |