0.6.3
Nelsson Huotari 7 years ago
parent 4649d1258c
commit 316d05bdc4

@ -206,8 +206,8 @@ void CSVRender::TerrainTextureMode::primaryEditPressed(const WorldspaceHitResult
CSMWorld::LandTexturesColumn::DataType mPointer = landTable.data(landTable.getModelIndex(cellId, textureColumn)).value<CSMWorld::LandTexturesColumn::DataType>(); CSMWorld::LandTexturesColumn::DataType mPointer = landTable.data(landTable.getModelIndex(cellId, textureColumn)).value<CSMWorld::LandTexturesColumn::DataType>();
CSMWorld::LandTexturesColumn::DataType mNew(mPointer); CSMWorld::LandTexturesColumn::DataType mNew(mPointer);
int xInCell {(hit.worldPos.x() - (stoi(slicedX)* cellSize)) * landTextureSize / cellSize}; int xInCell ((hit.worldPos.x() - (stoi(slicedX)* cellSize)) * landTextureSize / cellSize);
int yInCell {(hit.worldPos.y() - (stoi(slicedY)* cellSize)) * landTextureSize / cellSize}; int yInCell ((hit.worldPos.y() - (stoi(slicedY)* cellSize)) * landTextureSize / cellSize);
hashlocation = mBrushTexture.find(hash); hashlocation = mBrushTexture.find(hash);
std::string mBrushTextureInt = mBrushTexture.substr (hashlocation+1); std::string mBrushTextureInt = mBrushTexture.substr (hashlocation+1);
@ -225,12 +225,11 @@ void CSVRender::TerrainTextureMode::primaryEditPressed(const WorldspaceHitResult
} }
} }
} }
float distance = 0; float distance = 1;
if (mBrushShape == 2) if (mBrushShape == 2)
{ {
float rf = mBrushSize/2; float rf = mBrushSize/2;
int r = (mBrushSize/2)+1; int r = (mBrushSize/2)+1;
int r2 = r * r;
for(int i = -r; i < r; i++) for(int i = -r; i < r; i++)
{ {
for(int j = -r; j < r; j++) for(int j = -r; j < r; j++)

Loading…
Cancel
Save