Merge branch 'master' into blender2.8
Conflicts: source/blender/editors/object/object_add.c source/blender/editors/object/object_select.c source/blender/editors/space_outliner/outliner_edit.c
This commit is contained in:
@@ -400,6 +400,7 @@ static int node_add_mask_poll(bContext *C)
|
||||
|
||||
static int node_add_mask_exec(bContext *C, wmOperator *op)
|
||||
{
|
||||
Main *bmain = CTX_data_main(C);
|
||||
SpaceNode *snode = CTX_wm_space_node(C);
|
||||
bNode *node;
|
||||
ID *mask = NULL;
|
||||
@@ -407,7 +408,7 @@ static int node_add_mask_exec(bContext *C, wmOperator *op)
|
||||
/* check input variables */
|
||||
char name[MAX_ID_NAME - 2];
|
||||
RNA_string_get(op->ptr, "name", name);
|
||||
mask = BKE_libblock_find_name(ID_MSK, name);
|
||||
mask = BKE_libblock_find_name(bmain, ID_MSK, name);
|
||||
if (!mask) {
|
||||
BKE_reportf(op->reports, RPT_ERROR, "Mask '%s' not found", name);
|
||||
return OPERATOR_CANCELLED;
|
||||
|
||||
Reference in New Issue
Block a user