code cleanup: BKE_ naming, also make bpy.data.images.load() always load a new image...
[blender.git] / source / blender / editors / mesh / mesh_data.c
index f611a985797b1f6692d7dc82981c8b7dc47de4d6..042deb3def732c623e543d7d40bb02886cd157b7 100644 (file)
@@ -556,7 +556,7 @@ static int drop_named_image_invoke(bContext *C, wmOperator *op, wmEvent *event)
                char path[FILE_MAX];
                
                RNA_string_get(op->ptr, "filepath", path);
-               ima = BKE_add_image_file(path);
+               ima = BKE_image_load_exists(path);
        }
        else {
                RNA_string_get(op->ptr, "name", name);