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>2006-11-25 21:15:55 +0300
committerTon Roosendaal <ton@blender.org>2006-11-25 21:15:55 +0300
commitf554aa8a354ce438a5d463919b2e7f8e608b1e71 (patch)
tree76d0394b4283f2842208b94bb08e2f83b4b8449d /source/blender/src/buttons_editing.c
parent8292e4ac1a3b475f3238bcd537fa6182e5b9ac69 (diff)
Bugfix #5287
When referenced (Library-linked) Mesh was used by a local Object, and the amount of Materials became less in library, Blender crashed!
Diffstat (limited to 'source/blender/src/buttons_editing.c')
-rw-r--r--source/blender/src/buttons_editing.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/src/buttons_editing.c b/source/blender/src/buttons_editing.c
index 78771cac20c..f5537e39d88 100644
--- a/source/blender/src/buttons_editing.c
+++ b/source/blender/src/buttons_editing.c
@@ -4002,6 +4002,9 @@ static void editing_panel_links(Object *ob)
if ELEM5(ob->type, OB_MESH, OB_CURVE, OB_SURF, OB_FONT, OB_MBALL);
else return;
+ id= ob->data;
+ uiSetButLock(id->lib!=NULL, "Cannot edit Library data");
+
if(ob->type==OB_MESH) poin= &( ((Mesh *)ob->data)->texflag );
else if(ob->type==OB_MBALL) poin= &( ((MetaBall *)ob->data)->texflag );
else poin= &( ((Curve *)ob->data)->texflag );