diff options
author | Matt Ebb <matt@mke3.net> | 2010-06-27 11:45:57 +0400 |
---|---|---|
committer | Matt Ebb <matt@mke3.net> | 2010-06-27 11:45:57 +0400 |
commit | e86c5cf9ea951c102be1206ca489252166623e38 (patch) | |
tree | cc4a016ec52b692c202bdb0f9cfec4372086e4f0 /source/blender/editors/metaball | |
parent | ce7d7689340891e329f182cf969e13573483aded (diff) |
Fix [#22564] Object name by object type
Restored auto-naming newly created objects by type, for Mesh, Lamp, Meta
Diffstat (limited to 'source/blender/editors/metaball')
-rw-r--r-- | source/blender/editors/metaball/mball_edit.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/source/blender/editors/metaball/mball_edit.c b/source/blender/editors/metaball/mball_edit.c index 62261c3c68f..2ffccff835d 100644 --- a/source/blender/editors/metaball/mball_edit.c +++ b/source/blender/editors/metaball/mball_edit.c @@ -122,24 +122,39 @@ MetaElem *add_metaball_primitive(bContext *C, float mat[4][4], int type, int new case MB_BALL: ml->type = MB_BALL; ml->expx= ml->expy= ml->expz= 1.0; + + rename_id((ID *)obedit, "Meta Ball"); + rename_id((ID *)obedit->data, "Meta Ball"); break; case MB_TUBE: ml->type = MB_TUBE; ml->expx= ml->expy= ml->expz= 1.0; + + rename_id((ID *)obedit, "Meta Tube"); + rename_id((ID *)obedit->data, "Meta Tube"); break; case MB_PLANE: ml->type = MB_PLANE; ml->expx= ml->expy= ml->expz= 1.0; + + rename_id((ID *)obedit, "Meta Plane"); + rename_id((ID *)obedit->data, "Meta Plane"); break; case MB_ELIPSOID: ml->type = MB_ELIPSOID; ml->expx= 1.2f; ml->expy= 0.8f; ml->expz= 1.0; + + rename_id((ID *)obedit, "Meta Ellipsoid"); + rename_id((ID *)obedit->data, "Meta Ellipsoid"); break; case MB_CUBE: ml->type = MB_CUBE; ml->expx= ml->expy= ml->expz= 1.0; + + rename_id((ID *)obedit, "Meta Cube"); + rename_id((ID *)obedit->data, "Meta Cube"); break; default: break; |