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:
authorCampbell Barton <ideasman42@gmail.com>2008-03-07 02:45:17 +0300
committerCampbell Barton <ideasman42@gmail.com>2008-03-07 02:45:17 +0300
commit26c45844ac213ac9c768e7e1ede0c4d30ed0425a (patch)
tree5f26c5b2b1ba1eb64f8b0e0e33779fc40a2b9c8b /source/blender/src/headerbuttons.c
parent955e1b7ba0300035d0a2f64847d4554dec1a2db4 (diff)
Attempt to fix [#6757] linked objects made "local" still not editable
But not sure exactly what the user is doing. Made game logic work on linked objects and disabled "Add Material" for linked mesh data.
Diffstat (limited to 'source/blender/src/headerbuttons.c')
-rw-r--r--source/blender/src/headerbuttons.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/src/headerbuttons.c b/source/blender/src/headerbuttons.c
index d2d3a3352b7..dde5a512de9 100644
--- a/source/blender/src/headerbuttons.c
+++ b/source/blender/src/headerbuttons.c
@@ -391,6 +391,7 @@ int std_libbuttons(uiBlock *block, short xco, short yco,
}
else if(add_addbutton) { /* "add new" button */
uiBlockSetCol(block, oldcol);
+ if(parid) uiSetButLock(parid->lib!=0, ERROR_LIBDATA_MESSAGE);
uiDefButS(block, TOG, browse, "Add New" ,xco, yco, 110, YIC, menupoin, (float)*menupoin, 32767.0, 0, 0, "Add new data block");
xco+= 110;
}