Fix for World tab:
authorThomas Dinges <blender@dingto.org>
Fri, 16 Oct 2009 19:46:53 +0000 (19:46 +0000)
committerThomas Dinges <blender@dingto.org>
Fri, 16 Oct 2009 19:46:53 +0000 (19:46 +0000)
Unlinking an World Data block caused the whole tab to disappear.

source/blender/editors/space_buttons/buttons_context.c

index eb88ea8519e8dd5195a90640d33fde65fec98d7d..504e4a6866e132cc73a5f9bd78acf4460d60e233 100644 (file)
@@ -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;
                }
        }