diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-05-05 21:00:11 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-05-05 21:00:11 +0400 |
commit | 6292fb4cbd43c087c06886be7517a0dc07da9b43 (patch) | |
tree | bb4974c8fc57411bf872eb9ac04fdfd7f6734240 /source/blender/editors/space_node/node_edit.c | |
parent | 9b37bf21f46d897ad9b74eb97fb4f0a7ed59bd9d (diff) |
code cleanup: BKE_libblock_find_name() now takes an ID constant rather then a string.
Diffstat (limited to 'source/blender/editors/space_node/node_edit.c')
-rw-r--r-- | source/blender/editors/space_node/node_edit.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/space_node/node_edit.c b/source/blender/editors/space_node/node_edit.c index be9b495619c..f30098d151d 100644 --- a/source/blender/editors/space_node/node_edit.c +++ b/source/blender/editors/space_node/node_edit.c @@ -3418,7 +3418,7 @@ static int node_add_file_exec(bContext *C, wmOperator *op) else if (RNA_struct_property_is_set(op->ptr, "name")) { char name[MAX_ID_NAME-2]; RNA_string_get(op->ptr, "name", name); - ima= (Image *)BKE_libblock_find_name("IM", name); + ima= (Image *)BKE_libblock_find_name(ID_IM, name); if (!ima) { BKE_reportf(op->reports, RPT_ERROR, "Image named \"%s\", not found", name); |