From 2f7abb43f765930eedf2d75cc75515480ce0ce40 Mon Sep 17 00:00:00 2001 From: Nicholas Bishop Date: Fri, 29 Dec 2006 09:51:29 +0000 Subject: [PATCH] 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. --- source/blender/src/sculptmode.c | 1 + 1 file changed, 1 insertion(+) diff --git a/source/blender/src/sculptmode.c b/source/blender/src/sculptmode.c index 39c48da50bc..893ed791563 100644 --- a/source/blender/src/sculptmode.c +++ b/source/blender/src/sculptmode.c @@ -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); }