brushexport plugin: console print on success

This commit is contained in:
Garux 2019-12-20 17:37:10 +03:00
parent 0f6e20a334
commit 4af0818069
2 changed files with 6 additions and 2 deletions

View File

@ -11,7 +11,6 @@
void DestroyWindow(); void DestroyWindow();
//! TODO add tooltip for ignore: shader name after last slash, case sensitive // or make insensitive //! TODO add tooltip for ignore: shader name after last slash, case sensitive // or make insensitive
//! TODO console print on success
//! TODO make togglebuttons inactive on !exportmat //! TODO make togglebuttons inactive on !exportmat
//! TODO add ignore mat on ENTER, del on del //! TODO add ignore mat on ENTER, del on del
//! TODO add entry with path to save to (to resave faster) //! TODO add entry with path to save to (to resave faster)

View File

@ -382,5 +382,10 @@ bool ExportSelection( const std::set<std::string>& ignorelist, collapsemode m, b
ForEachSelected vis( exporter ); ForEachSelected vis( exporter );
GlobalSelectionSystem().foreachSelected( vis ); GlobalSelectionSystem().foreachSelected( vis );
return exporter.WriteToFile( path, m ); if( exporter.WriteToFile( path, m ) ){
globalOutputStream() << "brushexport::ExportSelection " << path.c_str() << "\n";
return true;
}
return false;
} }