diff options
author | Ton Roosendaal <ton@blender.org> | 2011-07-30 19:45:27 +0400 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2011-07-30 19:45:27 +0400 |
commit | 805a169f7065222ce047d950c55b585b36bc4b24 (patch) | |
tree | aad9735bc89a65cabc1e9cb46ce19ac6974bdb3e /source/blender/editors/screen | |
parent | d163ce55953bd04b42c2c79f6729e47228c01a9a (diff) |
Bugfix #28121
Linked Library objects or object->data should not allow to go
to sculptmode. Also cleaned up mode menu with invalid entries then.
Diffstat (limited to 'source/blender/editors/screen')
-rw-r--r-- | source/blender/editors/screen/screen_ops.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/screen/screen_ops.c b/source/blender/editors/screen/screen_ops.c index 68326edfb11..1410331700f 100644 --- a/source/blender/editors/screen/screen_ops.c +++ b/source/blender/editors/screen/screen_ops.c @@ -301,7 +301,7 @@ int ED_operator_object_active_editable(bContext *C) int ED_operator_object_active_editable_mesh(bContext *C) { Object *ob = ED_object_active_context(C); - return ((ob != NULL) && !(ob->id.lib) && !(ob->restrictflag & OB_RESTRICT_VIEW) && ob->type == OB_MESH); + return ((ob != NULL) && !(ob->id.lib) && !(ob->restrictflag & OB_RESTRICT_VIEW) && ob->type == OB_MESH && !(((ID *)ob->data)->lib)); } int ED_operator_object_active_editable_font(bContext *C) |