[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [13031] trunk/blender/source/blender/src: small edits noticed when using linked objects, - Make undo string say linked and disallow editing PassIndex and changing the Parent of linked objects .
Campbell Barton
ideasman42 at gmail.com
Fri Dec 28 13:11:46 CET 2007
Revision: 13031
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=13031
Author: campbellbarton
Date: 2007-12-28 13:11:45 +0100 (Fri, 28 Dec 2007)
Log Message:
-----------
small edits noticed when using linked objects, - Make undo string say linked and disallow editing PassIndex and changing the Parent of linked objects.
Modified Paths:
--------------
trunk/blender/source/blender/src/buttons_object.c
trunk/blender/source/blender/src/filesel.c
Modified: trunk/blender/source/blender/src/buttons_object.c
===================================================================
--- trunk/blender/source/blender/src/buttons_object.c 2007-12-28 09:57:06 UTC (rev 13030)
+++ trunk/blender/source/blender/src/buttons_object.c 2007-12-28 12:11:45 UTC (rev 13031)
@@ -2322,23 +2322,26 @@
Group *group;
int a, xco, yco=0;
short dx= 33, dy= 30;
-
+ int is_libdata = object_is_libdata(ob);
block= uiNewBlock(&curarea->uiblocks, "object_panel_object", UI_EMBOSS, UI_HELV, curarea->win);
if(uiNewPanel(curarea, block, "Object and Links", "Object", 0, 0, 318, 204)==0) return;
- uiSetButLock(object_is_libdata(ob), ERROR_LIBDATA_MESSAGE);
+
/* object name */
uiBlockSetCol(block, TH_BUT_SETTING2);
+ uiSetButLock(is_libdata, ERROR_LIBDATA_MESSAGE);
xco= std_libbuttons(block, 10, 180, 0, NULL, 0, ID_OB, 0, &ob->id, NULL, &(G.buts->menunr), B_OBALONE, B_OBLOCAL, 0, 0, B_KEEPDATA);
uiBlockSetCol(block, TH_AUTO);
/* parent */
+ uiSetButLock(is_libdata, ERROR_LIBDATA_MESSAGE);
uiDefIDPoinBut(block, test_obpoin_but, ID_OB, B_OBJECTPANELPARENT, "Par:", xco+5, 180, 305-xco, 20, &ob->parent, "Parent Object");
- /* TODO, check for ob->id.lib */
+ uiSetButLock(is_libdata, ERROR_LIBDATA_MESSAGE);
but = uiDefButS(block, NUM, B_NOP, "PassIndex:", xco+5, 150, 305-xco, 20, &ob->index, 0.0, 1000.0, 0, 0, "Index # for the IndexOB render pass.");
-
+
+ uiSetButLock(1, NULL);
uiDefBlockBut(block, add_groupmenu, NULL, "Add to Group", 10,150,150,20, "Add Object to a new Group");
/* all groups */
Modified: trunk/blender/source/blender/src/filesel.c
===================================================================
--- trunk/blender/source/blender/src/filesel.c 2007-12-28 09:57:06 UTC (rev 13030)
+++ trunk/blender/source/blender/src/filesel.c 2007-12-28 12:11:45 UTC (rev 13031)
@@ -1421,7 +1421,9 @@
}
do_library_append(sfile);
- BIF_undo_push("Append from file");
+
+ BIF_undo_push( ((sfile->flag & FILE_LINK)==0) ? "Append from file" : "Link from file");
+
allqueue(REDRAWALL, 1);
}
else if(filesel_has_func(sfile)) {
More information about the Bf-blender-cvs
mailing list