Merge branch 'master' into blender2.8
[blender.git] / source / blender / makesrna / intern / rna_sculpt_paint.c
index 1d6d7c4..be52a3f 100644 (file)
@@ -412,7 +412,7 @@ static void rna_ImaPaint_canvas_update(bContext *C, PointerRNA *UNUSED(ptr))
                                        SpaceImage *sima = (SpaceImage *)slink;
 
                                        if (!sima->pin)
-                                               ED_space_image_set(sima, scene, obedit, ima);
+                                               ED_space_image_set(bmain, sima, scene, obedit, ima);
                                }
                        }
                }