mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-03-17 10:21:11 +00:00
fix texture index +1, better icons
This commit is contained in:
parent
316d05bdc4
commit
cc415526b0
@ -211,7 +211,7 @@ void CSVRender::TerrainTextureMode::primaryEditPressed(const WorldspaceHitResult
|
|||||||
|
|
||||||
hashlocation = mBrushTexture.find(hash);
|
hashlocation = mBrushTexture.find(hash);
|
||||||
std::string mBrushTextureInt = mBrushTexture.substr (hashlocation+1);
|
std::string mBrushTextureInt = mBrushTexture.substr (hashlocation+1);
|
||||||
int brushInt = stoi(mBrushTexture.substr (hashlocation+1));
|
int brushInt = stoi(mBrushTexture.substr (hashlocation+1))+1; // All indices are offset by +1
|
||||||
|
|
||||||
if (mBrushShape == 0) mNew[yInCell*landTextureSize+xInCell] = brushInt;
|
if (mBrushShape == 0) mNew[yInCell*landTextureSize+xInCell] = brushInt;
|
||||||
if (mBrushShape == 1)
|
if (mBrushShape == 1)
|
||||||
@ -225,7 +225,7 @@ void CSVRender::TerrainTextureMode::primaryEditPressed(const WorldspaceHitResult
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
float distance = 1;
|
float distance = 0;
|
||||||
if (mBrushShape == 2)
|
if (mBrushShape == 2)
|
||||||
{
|
{
|
||||||
float rf = mBrushSize/2;
|
float rf = mBrushSize/2;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user