Skip to content

OpenToonz - An open-source full-featured 2D animation creation software

C

HideAll not working fix

manongjohn3f355e46af44
diff --git a/toonz/sources/toonz/columncommand.cpp b/toonz/sources/toonz/columncommand.cpp
index 0aa1e1722..77c4f7a8d 100644
--- a/toonz/sources/toonz/columncommand.cpp
+++ b/toonz/sources/toonz/columncommand.cpp
@@ -1225,6 +1225,7 @@ public:
TApp::instance()->getCurrentSelection()->getSelection());
TXsheet *xsh = TApp::instance()->getCurrentXsheet()->getXsheet();
int cc = TApp::instance()->getCurrentColumn()->getColumnIndex();
+ bool sound_changed = false;
for (int i = 0; i < xsh->getColumnCount(); i++) {
/*- 空のカラムの場合は飛ばす -*/
if (xsh->isColumnEmpty(i)) continue;
@@ -1271,6 +1272,7 @@ public:
column->setCamstandVisible(negate);
else
column->setCamstandVisible(!column->isCamstandVisible());
+ if (column->getSoundColumn()) sound_changed = true;
}
/*TAB
if(cmd & (CMD_ENABLE_PREVIEW|CMD_DISABLE_PREVIEW|CMD_TOGGLE_PREVIEW))
@@ -1293,6 +1295,7 @@ column->setCamstandVisible(!column->isCamstandVisible());
}
*/
}
+ if (sound_changed) TApp::instance()->getCurrentXsheet()->notifyXsheetSoundChanged();
TApp::instance()->getCurrentXsheet()->notifyXsheetChanged();
TApp::instance()->getCurrentScene()->setDirtyFlag(true);
}