From 4af08180695e259b513f61fc77de3bce1cd99514 Mon Sep 17 00:00:00 2001 From: Garux Date: Fri, 20 Dec 2019 17:37:10 +0300 Subject: [PATCH] brushexport plugin: console print on success --- contrib/brushexport/callbacks.cpp | 1 - contrib/brushexport/export.cpp | 7 ++++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/contrib/brushexport/callbacks.cpp b/contrib/brushexport/callbacks.cpp index aca422b3..8c9ee124 100644 --- a/contrib/brushexport/callbacks.cpp +++ b/contrib/brushexport/callbacks.cpp @@ -11,7 +11,6 @@ void DestroyWindow(); //! 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 add ignore mat on ENTER, del on del //! TODO add entry with path to save to (to resave faster) diff --git a/contrib/brushexport/export.cpp b/contrib/brushexport/export.cpp index 2d4d4bcf..29db01e0 100644 --- a/contrib/brushexport/export.cpp +++ b/contrib/brushexport/export.cpp @@ -382,5 +382,10 @@ bool ExportSelection( const std::set& ignorelist, collapsemode m, b ForEachSelected vis( exporter ); GlobalSelectionSystem().foreachSelected( vis ); - return exporter.WriteToFile( path, m ); + if( exporter.WriteToFile( path, m ) ){ + globalOutputStream() << "brushexport::ExportSelection " << path.c_str() << "\n"; + return true; + } + + return false; }