diff options
author | Campbell Barton <ideasman42@gmail.com> | 2010-04-24 23:26:05 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2010-04-24 23:26:05 +0400 |
commit | 4bd3163ea6399311d33f1c6c280d0d23c3a4e370 (patch) | |
tree | 0b0154bceb58f96ead4b8ea95e67b7de204a1a7d /source/blender/editors/space_node | |
parent | b31e9b764e397bec7f9801a57004ece5d5873679 (diff) |
py api: fix for context returning None for an empty list such as 'context.selected_objects', now returns []
Diffstat (limited to 'source/blender/editors/space_node')
-rw-r--r-- | source/blender/editors/space_node/space_node.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/editors/space_node/space_node.c b/source/blender/editors/space_node/space_node.c index afb2ec04f55..bb568c49298 100644 --- a/source/blender/editors/space_node/space_node.c +++ b/source/blender/editors/space_node/space_node.c @@ -340,6 +340,7 @@ static int node_context(const bContext *C, const char *member, bContextDataResul CTX_data_list_add(result, &snode->edittree->id, &RNA_Node, node); } } + CTX_data_type_set(result, CTX_DATA_TYPE_COLLECTION); return 1; } |