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:
authorThomas Dinges <blender@dingto.org>2009-10-16 23:46:53 +0400
committerThomas Dinges <blender@dingto.org>2009-10-16 23:46:53 +0400
commit474e97e6d22973cf95262d5262e880c15683b828 (patch)
treed3db878183222dc713141922f5d30c4f34763ee2 /source/blender/editors/space_buttons
parent38ce0c64cd49222b7e42867f2eb81036b71a336d (diff)
Fix for World tab:
Unlinking an World Data block caused the whole tab to disappear.
Diffstat (limited to 'source/blender/editors/space_buttons')
-rw-r--r--source/blender/editors/space_buttons/buttons_context.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/editors/space_buttons/buttons_context.c b/source/blender/editors/space_buttons/buttons_context.c
index eb88ea8519e..504e4a6866e 100644
--- a/source/blender/editors/space_buttons/buttons_context.c
+++ b/source/blender/editors/space_buttons/buttons_context.c
@@ -132,7 +132,9 @@ static int buttons_context_path_world(ButsContextPath *path)
if(world) {
RNA_id_pointer_create(&scene->world->id, &path->ptr[path->len]);
path->len++;
-
+ return 1;
+ }
+ else {
return 1;
}
}