From c7dfa96aeac0940b093efed9b818e0c0d3c9feba Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Sun, 17 Jan 2010 20:06:34 +0000 Subject: bugfix [#20639] BF25_SVN_25888 and below - OBJ and 3DS import fails blender supports type changing for textures in a way that python doesnt. add a new general function. Example usage: tex = bpy.data.textures.new("Foo") tex.type = 'IMAGE' tex = tex.recast_type() Macro to give the number of users accounting for fake user. ID_REAL_USERS(id) Use this so you can remove a datablock if it has a fake users as well as apply transformations to it in the 3D view. Move api function bpy.data.add_texture() --> bpy.data.textures.new()/remove() --- source/blender/blenkernel/BKE_deform.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/blenkernel/BKE_deform.h') diff --git a/source/blender/blenkernel/BKE_deform.h b/source/blender/blenkernel/BKE_deform.h index d9cf6bc8feb..59acea3c552 100644 --- a/source/blender/blenkernel/BKE_deform.h +++ b/source/blender/blenkernel/BKE_deform.h @@ -47,7 +47,7 @@ int get_defgroup_num (struct Object *ob, struct bDeformGroup *dg); int *get_defgroup_flip_map(struct Object *ob); int get_named_vertexgroup_num (Object *ob, const char *name); void unique_vertexgroup_name (struct bDeformGroup *dg, struct Object *ob); -void flip_vertexgroup_name (char *name_r, const char *name, int strip_number); +void flip_vertexgroup_name (char *name, const char *from_name, int strip_number); float deformvert_get_weight(const struct MDeformVert *dvert, int group_num); float vertexgroup_get_vertex_weight(const struct MDeformVert *dvert, int index, int group_num); -- cgit v1.2.3