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/blenkernel/intern | |
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/blenkernel/intern')
-rw-r--r-- | source/blender/blenkernel/intern/customdata.c | 2 |
1 files changed, 1 insertions, 1 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; } |