* m2 in Surface Inspector->fit width/height = fit width/height, keep height/width

This commit is contained in:
Garux
2018-02-19 17:28:05 +03:00
parent c1b9b17635
commit c878333c7b
8 changed files with 63 additions and 29 deletions

View File

@@ -908,11 +908,11 @@ void Select_ProjectTexture( const TextureProjection& projection, const Vector3&
SceneChangeNotify();
}
void Select_FitTexture( float horizontal, float vertical ){
void Select_FitTexture( float horizontal, float vertical, bool only_dimension ){
if ( GlobalSelectionSystem().Mode() != SelectionSystem::eComponent ) {
Scene_BrushFitTexture_Selected( GlobalSceneGraph(), horizontal, vertical );
Scene_BrushFitTexture_Selected( GlobalSceneGraph(), horizontal, vertical, only_dimension );
}
Scene_BrushFitTexture_Component_Selected( GlobalSceneGraph(), horizontal, vertical );
Scene_BrushFitTexture_Component_Selected( GlobalSceneGraph(), horizontal, vertical, only_dimension );
SceneChangeNotify();
}