simplify thumbnail reading and remove some warnings
[blender.git] / source / blender / editors / interface / interface_templates.c
index ecbdab982578714930d612d9dabd29844c44fa03..53a9b85b980594f26650e110e91cf2f031a4fefd 100644 (file)
@@ -195,7 +195,7 @@ static void id_search_cb(const bContext *C, void *arg_template, char *str, uiSea
 
                                        RNA_parameter_set_lookup(&parms, "context", &C);
 
-                                       if (RNA_function_call(C, &reports, &ptr, func, &parms) == 0) {
+                                       if (RNA_function_call((bContext *)C, &reports, &ptr, func, &parms) == 0) {
                                                int* ret;
                                                RNA_parameter_get_lookup(&parms, "ret", (void **)&ret);