From 9a0b0140bf26adffba0863313e244ebf9f15357e Mon Sep 17 00:00:00 2001 From: David Capello Date: Fri, 25 Jan 2019 15:48:35 -0300 Subject: [PATCH] Update texture size when the Extrude check-box is changed --- src/app/commands/cmd_export_sprite_sheet.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/app/commands/cmd_export_sprite_sheet.cpp b/src/app/commands/cmd_export_sprite_sheet.cpp index 9c52b6676..555bfdac9 100644 --- a/src/app/commands/cmd_export_sprite_sheet.cpp +++ b/src/app/commands/cmd_export_sprite_sheet.cpp @@ -299,6 +299,7 @@ public: borderPadding()->Change.connect(base::Bind(&ExportSpriteSheetWindow::onPaddingChange, this)); shapePadding()->Change.connect(base::Bind(&ExportSpriteSheetWindow::onPaddingChange, this)); innerPadding()->Change.connect(base::Bind(&ExportSpriteSheetWindow::onPaddingChange, this)); + extrudeEnabled()->Click.connect(base::Bind(&ExportSpriteSheetWindow::onExtrudeChange, this)); imageEnabled()->Click.connect(base::Bind(&ExportSpriteSheetWindow::onImageEnabledChange, this)); imageFilename()->Click.connect(base::Bind(&ExportSpriteSheetWindow::onImageFilename, this)); dataEnabled()->Click.connect(base::Bind(&ExportSpriteSheetWindow::onDataEnabledChange, this)); @@ -550,6 +551,10 @@ private: updateSizeFields(); } + void onExtrudeChange() { + updateSizeFields(); + } + void onFramesChange() { updateSizeFields(); }