Revision: 15805
          
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=15805
Author:   aligorith
Date:     2008-07-27 14:48:46 +0200 (Sun, 27 Jul 2008)

Log Message:
-----------
#17309: Copy/pasting bone names (without editing text) doesn't update bone/pose 
names

The pasting code for text-buttons (when hovering over the button), was 
incorrectly using the drawstr (i.e. the string that is displayed in the 
text-button, and includes the 'name' of the button) as the old value. This 
meant that the renaming code could not correctly detect matches to rename.

Modified Paths:
--------------
    trunk/blender/source/blender/src/interface.c

Modified: trunk/blender/source/blender/src/interface.c
===================================================================
--- trunk/blender/source/blender/src/interface.c        2008-07-27 12:28:34 UTC 
(rev 15804)
+++ trunk/blender/source/blender/src/interface.c        2008-07-27 12:48:46 UTC 
(rev 15805)
@@ -532,7 +532,7 @@
                        /* give butfunc the original text too */
                        /* feature used for bone renaming, channels, etc */
                        if(but->func_arg2==NULL) {
-                               strncpy(backstr, but->drawstr, UI_MAX_DRAW_STR);
+                               strncpy(backstr, but->poin, UI_MAX_DRAW_STR);
                                but->func_arg2= backstr;
                        }
                        strncpy(but->poin, but_copypaste_str, but->max);


_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to