Bug fix: if a file is saved with sculptmode on and a brush with a texture is enabled, the brush image must be loaded before it can be used.

This commit is contained in:
2006-12-29 09:51:29 +00:00
parent dcb47000f7
commit 2f7abb43f7

View File

@@ -1299,6 +1299,7 @@ void sculptmode_update_tex()
ri->pr_rectx = 128; /* FIXME: might want to allow higher/lower sizes */
ri->pr_recty = 128;
BKE_image_get_ibuf(sd->mtex[sd->texact]->tex->ima, NULL);
BIF_previewrender(&sd->mtex[sd->texact]->tex->id, ri, NULL, PR_ICON_RENDER);
}