MCPcopy Create free account
hub / github.com/codereader/DarkRadiant / scaleTextureLeft

Function scaleTextureLeft

radiantcore/selection/algorithm/Shader.cpp:572–578  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

570}
571
572void scaleTextureLeft()
573{
574 // Correct the factor such that clicking the down and up button in the surface inspector
575 // brings us back to the original state
576 auto step = registry::getValue<float>("user/ui/textures/surfaceInspector/hScaleStep");
577 scaleTexture(Vector2(1 / (1 + step) - 1, 0.0f));
578}
579
580void scaleTextureRight()
581{

Callers 1

scaleTextureFunction · 0.85

Calls 1

scaleTextureFunction · 0.85

Tested by

no test coverage detected