- smoke wasn't closing the file of loading a tile had the wrong length.

- missing break in operator context switch meant RGN_TYPE_CHANNELS was always being overwritten with RGN_TYPE_PREVIEW when calling operators (from r26692)
This commit is contained in:
Campbell Barton
2010-11-20 07:51:39 +00:00
parent de9bb343cf
commit 78cd971bac
2 changed files with 2 additions and 0 deletions

View File

@@ -243,6 +243,7 @@ static bool loadTile(float* const noiseTileData, std::string filename)
|| (headerbuffer[headerlen-1] != (char)((char)sizeof(long)+'0')))
{
printf("loadTile : Noise tile '%s' was generated on an incompatible platform.\n",filename.c_str());
fclose(file);
return false;
}

View File

@@ -751,6 +751,7 @@ static int wm_operator_call_internal(bContext *C, wmOperatorType *ot, PointerRNA
case WM_OP_EXEC_REGION_CHANNELS:
case WM_OP_INVOKE_REGION_CHANNELS:
type = RGN_TYPE_CHANNELS;
break;
case WM_OP_EXEC_REGION_PREVIEW:
case WM_OP_INVOKE_REGION_PREVIEW: