Merge branch 'master' into blender2.8
[blender.git] / source / blender / makesrna / intern / rna_material.c
index e1eadda..858dd0e 100644 (file)
@@ -160,7 +160,7 @@ static void rna_Material_active_paint_texture_index_update(Main *bmain, Scene *s
                                        if (sl->spacetype == SPACE_IMAGE) {
                                                SpaceImage *sima = (SpaceImage *)sl;
                                                if (!sima->pin) {
-                                                       ED_space_image_set(sima, scene, obedit, image);
+                                                       ED_space_image_set(bmain, sima, scene, obedit, image);
                                                }
                                        }
                                }