X-Git-Url: https://git.xonotic.org/?a=blobdiff_plain;f=radiant%2Fselect.cpp;h=0728692ea895af4e9ca85e980cdb270696538dcb;hb=9fed37bae007bd5e53963ec67e925381609a2980;hp=4246ab428d0eee68eb287baaa080d5dd0e57f37d;hpb=7fc621fc78d0e040dc2c12f38dc53dd9048215dc;p=xonotic%2Fnetradiant.git diff --git a/radiant/select.cpp b/radiant/select.cpp index 4246ab42..0728692e 100644 --- a/radiant/select.cpp +++ b/radiant/select.cpp @@ -692,6 +692,24 @@ void Select_FitTexture( float horizontal, float vertical ){ SceneChangeNotify(); } +void Select_FitTextureW( float horizontal, float vertical ){ + if ( GlobalSelectionSystem().Mode() != SelectionSystem::eComponent ) { + Scene_BrushFitTexture_SelectedW( GlobalSceneGraph(), horizontal, vertical ); + } + Scene_BrushFitTexture_Component_SelectedW( GlobalSceneGraph(), horizontal, vertical ); + + SceneChangeNotify(); +} + +void Select_FitTextureH( float horizontal, float vertical ){ + if ( GlobalSelectionSystem().Mode() != SelectionSystem::eComponent ) { + Scene_BrushFitTexture_SelectedH( GlobalSceneGraph(), horizontal, vertical ); + } + Scene_BrushFitTexture_Component_SelectedH( GlobalSceneGraph(), horizontal, vertical ); + + SceneChangeNotify(); +} + inline void hide_node( scene::Node& node, bool hide ){ hide ? node.enable( scene::Node::eHidden )