OpenToonz - An open-source full-featured 2D animation creation software
C
Fix deleted Camera1 returning due to Camera Column refresh (#2808)
manongjohn12d839e90354
diff --git a/toonz/sources/toonzlib/tstageobjectcmd.cpp b/toonz/sources/toonzlib/tstageobjectcmd.cppindex 9f843a344..12c8619b3 100644--- a/toonz/sources/toonzlib/tstageobjectcmd.cpp+++ b/toonz/sources/toonzlib/tstageobjectcmd.cpp@@ -793,7 +793,8 @@ void removeStageObjectNode(const TStageObjectId &id, TXsheetHandle *xshHandle,return;if (id.isCamera() && xsh->getCameraColumnIndex() == id.getIndex())- xsh->setCameraColumnIndex(0);+ xsh->setCameraColumnIndex(+ xsh->getStageObjectTree()->getCurrentCameraId().getIndex());// stacco tutti i figli e li attacco al padreQList<TStageObjectId> linkedObjects;