* Valve220: keep basis on 'paintTexture&Projection' (shift+m3); 'projectTexture' (ctrl+shift+m3) performs basis copy

This commit is contained in:
Garux
2017-11-10 14:56:35 +03:00
parent 618d31bc96
commit 1658f27ee6
8 changed files with 25 additions and 23 deletions

View File

@@ -517,11 +517,11 @@ void Select_SetShader_Undo( const char* shader ){
}
}
void Select_SetTexdef( const TextureProjection& projection ){
void Select_SetTexdef( const TextureProjection& projection, bool setBasis /*= true*/, bool resetBasis /*= false*/ ){
if ( GlobalSelectionSystem().Mode() != SelectionSystem::eComponent ) {
Scene_BrushSetTexdef_Selected( GlobalSceneGraph(), projection );
Scene_BrushSetTexdef_Selected( GlobalSceneGraph(), projection, setBasis, resetBasis );
}
Scene_BrushSetTexdef_Component_Selected( GlobalSceneGraph(), projection );
Scene_BrushSetTexdef_Component_Selected( GlobalSceneGraph(), projection, setBasis, resetBasis );
}
void Select_SetTexdef( const float* hShift, const float* vShift, const float* hScale, const float* vScale, const float* rotation ){