mirror of
https://github.com/OpenMW/openmw.git
synced 2025-02-22 10:39:41 +00:00
const ref float -> float
This commit is contained in:
parent
ac5b356e8d
commit
9e5db10288
2 changed files with 2 additions and 2 deletions
|
@ -388,7 +388,7 @@ void CSVRender::TerrainShapeMode::applyTerrainEditChanges()
|
||||||
mAlteredCells.clear();
|
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;
|
float distancePerRadius = distance / radius;
|
||||||
return height - height * (3 * distancePerRadius * distancePerRadius - 2 * distancePerRadius * distancePerRadius * distancePerRadius);
|
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);
|
void editTerrainShapeGrid (const std::pair<int, int>& vertexCoords, bool dragOperation);
|
||||||
|
|
||||||
/// Calculate height, when aiming for bump-shaped terrain change
|
/// 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
|
/// set the target height for flatten tool
|
||||||
void setFlattenToolTargetHeight(const WorldspaceHitResult& hit);
|
void setFlattenToolTargetHeight(const WorldspaceHitResult& hit);
|
||||||
|
|
Loading…
Reference in a new issue