Fix #29477: make proxy gave proxy object the wrong name with OB prefix.
authorBrecht Van Lommel <brechtvanlommel@pandora.be>
Fri, 2 Dec 2011 20:49:31 +0000 (20:49 +0000)
committerBrecht Van Lommel <brechtvanlommel@pandora.be>
Fri, 2 Dec 2011 20:49:31 +0000 (20:49 +0000)
Broke in revision 41125 with BLI_snprintf refactoring, checked other
changes in that commit and they seem to be fine, was just this one.

source/blender/editors/object/object_relations.c

index 3a4cd6135cfe2426a826ba16b91638a4c2e04216..6b517b6eeb07b38c7b847997f4f35799f0d653b4 100644 (file)
@@ -340,7 +340,7 @@ static int make_proxy_exec (bContext *C, wmOperator *op)
                /* Add new object for the proxy */
                newob= add_object(scene, OB_EMPTY);
 
-               BLI_snprintf(name, sizeof(name), "%s_proxy", ((ID *)(gob ? gob : ob))->name);
+               BLI_snprintf(name, sizeof(name), "%s_proxy", ((ID *)(gob ? gob : ob))->name+2);
 
                rename_id(&newob->id, name);