[Bf-blender-cvs] [e9120950d8f] temp-lineart-contained: Fix build issues.
Sebastian Parborg
noreply at git.blender.org
Thu Feb 11 17:06:45 CET 2021
Commit: e9120950d8fadfb666860f24eb480803ab61bc83
Author: Sebastian Parborg
Date: Thu Feb 11 17:06:21 2021 +0100
Branches: temp-lineart-contained
https://developer.blender.org/rBe9120950d8fadfb666860f24eb480803ab61bc83
Fix build issues.
===================================================================
M source/blender/editors/space_buttons/buttons_context.c
===================================================================
diff --git a/source/blender/editors/space_buttons/buttons_context.c b/source/blender/editors/space_buttons/buttons_context.c
index 42771b70a18..c2eca85a8d1 100644
--- a/source/blender/editors/space_buttons/buttons_context.c
+++ b/source/blender/editors/space_buttons/buttons_context.c
@@ -33,6 +33,7 @@
#include "DNA_armature_types.h"
#include "DNA_brush_types.h"
+#include "DNA_collection_types.h"
#include "DNA_linestyle_types.h"
#include "DNA_material_types.h"
#include "DNA_node_types.h"
@@ -162,7 +163,7 @@ static bool buttons_context_path_collection(ButsContextPath *path, wmWindow *win
return true;
}
/* if we have a view layer, use the view layer's active collection */
- else if (buttons_context_path_view_layer(path, window)) {
+ if (buttons_context_path_view_layer(path, window)) {
ViewLayer *view_layer = path->ptr[path->len - 1].data;
Collection *c = view_layer->active_collection->collection;
if (c) {
More information about the Bf-blender-cvs
mailing list