DarkRadiant: master c264b2a3

Author Committer Branch Timestamp Parent
orbweaver orbweaver master 07.10.2025 18:40 master 656ba889
Changeset TextureManipulator preferences now visible in dialog

TextureManipulator was a static object constructed on demand, and the
only call to construct it came from MapExpression when handling a
map expression that requires a texture to be resized. This meant that
under many circumstances the TextureManipulator was never constructed
and its constructPreferences method never called.

The TextureManipulator is now a component of MaterialManager and follows
its life cycle. The code to construct the preference page has been moved
out of TextureManipulator altogether, and now takes place during the
construction of MaterialManager, which makes the preference page visible
as soon as the application has started.
mod - .gitignore Diff File
mod - radiantcore/shaders/MapExpression.cpp Diff File
mod - radiantcore/shaders/MaterialManager.cpp Diff File
mod - radiantcore/shaders/MaterialManager.h Diff File
mod - radiantcore/shaders/textures/TextureManipulator.cpp Diff File
mod - radiantcore/shaders/textures/TextureManipulator.h Diff File