mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-25 21:41:04 +00:00
const ref float -> float
This commit is contained in:
parent
ac5b356e8d
commit
9e5db10288
@ -388,7 +388,7 @@ void CSVRender::TerrainShapeMode::applyTerrainEditChanges()
|
||||
mAlteredCells.clear();
|
||||
}
|
||||
|
||||
float CSVRender::TerrainShapeMode::calculateBumpShape(const float& distance, int radius, const float& height)
|
||||
float CSVRender::TerrainShapeMode::calculateBumpShape(float distance, int radius, float height)
|
||||
{
|
||||
float distancePerRadius = distance / radius;
|
||||
return height - height * (3 * distancePerRadius * distancePerRadius - 2 * distancePerRadius * distancePerRadius * distancePerRadius);
|
||||
|
@ -102,7 +102,7 @@ namespace CSVRender
|
||||
void editTerrainShapeGrid (const std::pair<int, int>& vertexCoords, bool dragOperation);
|
||||
|
||||
/// Calculate height, when aiming for bump-shaped terrain change
|
||||
float calculateBumpShape(const float& distance, int radius, const float& height);
|
||||
float calculateBumpShape(float distance, int radius, float height);
|
||||
|
||||
/// set the target height for flatten tool
|
||||
void setFlattenToolTargetHeight(const WorldspaceHitResult& hit);
|
||||
|
Loading…
x
Reference in New Issue
Block a user