Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTon Roosendaal <ton@blender.org>2004-11-09 01:10:20 +0300
committerTon Roosendaal <ton@blender.org>2004-11-09 01:10:20 +0300
commit78551a575eef679ecab6d0269eefb08fbc8b2b18 (patch)
treed55db379ec532eaad52cf30a9760a9d5158bdaf3 /source/blender/src/drawview.c
parent4a20c3d03d72712b192b6e79d1b7827e41f4bd75 (diff)
Sorry sorry... new feature while in freeze mode, bad bad bad!
But this was promised on conference, and have to keep that promise. :) Buttons in Blender now allow copy/paste values and strings. Also works for object names! Mouse over button and press CTRL+C or CTRL+V for copy/paste (Macs can do Apple key) Plus bugfix: name button for object in Nkey panel didn't check name
Diffstat (limited to 'source/blender/src/drawview.c')
-rw-r--r--source/blender/src/drawview.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/source/blender/src/drawview.c b/source/blender/src/drawview.c
index 38a59263bac..bc3d114a2ba 100644
--- a/source/blender/src/drawview.c
+++ b/source/blender/src/drawview.c
@@ -1478,6 +1478,7 @@ void do_viewbuts(unsigned short event)
static void view3d_panel_object(short cntrl) // VIEW3D_HANDLER_OBJECT
{
uiBlock *block;
+ uiBut *bt;
Object *ob= OBACT;
float lim;
@@ -1496,7 +1497,9 @@ static void view3d_panel_object(short cntrl) // VIEW3D_HANDLER_OBJECT
uiBlockSetFlag(block, UI_BLOCK_FRONTBUFFER); // force old style frontbuffer draw
}
else {
- uiDefBut(block, TEX, B_IDNAME, "OB: ", 10,180,140,20, ob->id.name+2, 0.0, 19.0, 0, 0, "");
+ bt= uiDefBut(block, TEX, B_IDNAME, "OB: ", 10,180,140,20, ob->id.name+2, 0.0, 19.0, 0, 0, "");
+ uiButSetFunc(bt, test_idbutton_cb, ob->id.name, NULL);
+
uiDefIDPoinBut(block, test_obpoin_but, B_OBJECTPANELPARENT, "Par:", 160, 180, 140, 20, &ob->parent, "Parent Object");
}