diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2007-01-06 23:16:06 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2007-01-06 23:16:06 +0300 |
commit | 36e03e5ca8278bf68ebf42c412ab727d43215654 (patch) | |
tree | 8cdea534706a9d92d1cae9e22780fe240091b268 /source/blender/blenkernel/BKE_customdata.h | |
parent | 6128b510234bc67d10b55aed9fbb66f304d7c849 (diff) |
Potential fix for bug #5359:
Crash leaving editmode related to vertex groups. I couldn't reproduce this,
but suspect somehow multiple deformvert layers were created. Added some
extra checks to avoid that now.
Diffstat (limited to 'source/blender/blenkernel/BKE_customdata.h')
-rw-r--r-- | source/blender/blenkernel/BKE_customdata.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/blenkernel/BKE_customdata.h b/source/blender/blenkernel/BKE_customdata.h index 03224eaadaf..542837dc3fb 100644 --- a/source/blender/blenkernel/BKE_customdata.h +++ b/source/blender/blenkernel/BKE_customdata.h @@ -221,4 +221,8 @@ const char *CustomData_layertype_name(int type); /* make sure the name of layer at index is unique */ void CustomData_set_layer_unique_name(struct CustomData *data, int index); +/* for file reading compatibility, returns false if the layer was freed, + only after this test passes, layer->data should be assigned */ +int CustomData_verify_versions(struct CustomData *data, int index); + #endif |