forked from bartvdbraak/blender
Changed missing line ending style for TEX_ files
in sculptmode.c move initalization of a var to fix an issue where index of array could be -1. Found by coverity. Kent
This commit is contained in:
parent
c78b460fce
commit
6020d2cb45
@ -1175,7 +1175,7 @@ void sculptmode_update_tex()
|
||||
{
|
||||
SculptData *sd= sculpt_data();
|
||||
SculptSession *ss= sculpt_session();
|
||||
MTex *mtex = sd->mtex[sd->texact];
|
||||
MTex *mtex;
|
||||
TexResult texres = {0};
|
||||
float x, y, step=2.0/TC_SIZE, co[3];
|
||||
int hasrgb, ix, iy;
|
||||
@ -1183,6 +1183,8 @@ void sculptmode_update_tex()
|
||||
/* Skip Default brush shape and non-textures */
|
||||
if(sd->texact == -1 || !sd->mtex[sd->texact]) return;
|
||||
|
||||
mtex = sd->mtex[sd->texact];
|
||||
|
||||
if(ss->texcache) {
|
||||
MEM_freeN(ss->texcache);
|
||||
ss->texcache= NULL;
|
||||
|
Loading…
Reference in New Issue
Block a user