diff options
author | Willian Padovani Germano <wpgermano@gmail.com> | 2004-11-07 18:05:35 +0300 |
---|---|---|
committer | Willian Padovani Germano <wpgermano@gmail.com> | 2004-11-07 18:05:35 +0300 |
commit | c6c86b8df0c31456a3456a1b4ae9c8596e87c69a (patch) | |
tree | f86e3b1efb718eac0d60011e7b996ed32e18ef76 /source/blender/python/api2_2x/NMesh.c | |
parent | 8226f8a0b21f7045ca7023b59c6175c2b2c5b2dd (diff) |
Fixes in bpython:
-- Alexander Szakaly reported and provided a patch for Material.c and NMesh.c to solve crash in material handling when there's no material.
-- Ton reported a crash with advancing a frame after creating a new script link. I couldn't reproduce the crash, but added a check in BPY_do_pyscript to make sure the passed ID pointer is valid.
Thanks both.
Diffstat (limited to 'source/blender/python/api2_2x/NMesh.c')
-rw-r--r-- | source/blender/python/api2_2x/NMesh.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/source/blender/python/api2_2x/NMesh.c b/source/blender/python/api2_2x/NMesh.c index 38d189e007f..f08882ebcc1 100644 --- a/source/blender/python/api2_2x/NMesh.c +++ b/source/blender/python/api2_2x/NMesh.c @@ -26,7 +26,7 @@ * This is a new part of Blender. * * Contributor(s): Willian P. Germano, Jordi Rovira i Bonet, Joseph Gilbert, - * Bala Gi + * Bala Gi, Alexander Szakaly * * ***** END GPL/BL DUAL LICENSE BLOCK ***** */ @@ -2045,6 +2045,7 @@ void EXPP_unlink_mesh( Mesh * me ) me->mat[a]->id.us--; me->mat[a] = 0; } + /* ... here we want to preserve mesh keys */ /* if users want to get rid of them, they can use mesh.removeAllKeys() */ /* @@ -2053,6 +2054,8 @@ void EXPP_unlink_mesh( Mesh * me ) */ if( me->texcomesh ) me->texcomesh = 0; + + me->totcol = 0; } static int unlink_existingMeshData( Mesh * mesh ) |