DarkRadiant: master 31d1c025

Author Committer Branch Timestamp Parent
orbweaver orbweaver master 2021-07-22 19:22:36 master 996d02d6
Affected Issues  0005684: Aspect ratio preserving Fit Texture option
Changeset Initial implementation of single-axis texture fitting

If the button is toggled, a value of -1 will be passed to the implementing
code, indicating that a particular axis should not be fitted. Currently the
result isn't quite correct: rather than preserving aspect ratio, it is
preserving the *current* texture transformation for the non-fitted axis (i.e.
it doesn't touch the shift/scale values for the non-fitted axis at all).
mod - radiant/ui/surfaceinspector/SurfaceInspector.cpp Diff File
mod - radiant/ui/surfaceinspector/SurfaceInspector.h Diff File
mod - radiantcore/brush/TextureProjection.cpp Diff File