Skip to content

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

C

V1.1.3 (#1255)

shun-iwasawa5b7b9fb309bc
diff --git a/toonz/sources/include/tdoubleparam.h b/toonz/sources/include/tdoubleparam.h
index 70a637e03..183c02b3b 100644
--- a/toonz/sources/include/tdoubleparam.h
+++ b/toonz/sources/include/tdoubleparam.h
@@ -156,8 +156,7 @@ public:
std::string getValueAlias(double frame, int precision) override;
};
-DVAPI void splitSpeedInOutSegment(TDoubleKeyframe &k,
- TDoubleKeyframe &k0,
+DVAPI void splitSpeedInOutSegment(TDoubleKeyframe &k, TDoubleKeyframe &k0,
TDoubleKeyframe &k1);
//---------------------------------------------------------
diff --git a/toonz/sources/include/tpersist.h b/toonz/sources/include/tpersist.h
index 769c31c17..c5b15b880 100644
--- a/toonz/sources/include/tpersist.h
+++ b/toonz/sources/include/tpersist.h
@@ -142,9 +142,10 @@ public:
class TPersistDeclarationT
*/
#define PERSIST_DECLARATION(T) \
+ \
private: \
static TPersistDeclarationT<T> m_declaration; \
- \
+ \
public: \
const TPersistDeclaration *getDeclaration() const override { \
return &m_declaration; \
diff --git a/toonz/sources/include/tpixelutils.h b/toonz/sources/include/tpixelutils.h
index b57036b3f..04c2c2ac5 100644
--- a/toonz/sources/include/tpixelutils.h
+++ b/toonz/sources/include/tpixelutils.h
@@ -230,8 +230,7 @@ inline TPixel32 quickOverPix(const TPixel32 &bot, const TPixel32 &top) {
//-----------------------------------------------------------------------------
-inline TPixel32 quickOverPixPremult(const TPixel32 &bot,
- const TPixel32 &top) {
+inline TPixel32 quickOverPixPremult(const TPixel32 &bot, const TPixel32 &top) {
return quickOverPixPremultT<TPixel32, UCHAR>(bot, top);
}
diff --git a/toonz/sources/include/traster.h b/toonz/sources/include/traster.h
index 13ce6b75d..4fca77ff5 100644
--- a/toonz/sources/include/traster.h
+++ b/toonz/sources/include/traster.h
@@ -62,7 +62,6 @@ class TRasterPT;
class TRaster;
typedef TSmartPointerT<TRaster> TRasterP;
-
//------------------------------------------------------------
//
diff --git a/toonz/sources/include/trenderresourcemanager.h b/toonz/sources/include/trenderresourcemanager.h
index cbb6da760..559274a19 100644
--- a/toonz/sources/include/trenderresourcemanager.h
+++ b/toonz/sources/include/trenderresourcemanager.h
@@ -132,10 +132,11 @@ static TRenderResourceManagerGenerator* gen();
*/
#define T_RENDER_RESOURCE_MANAGER \
+ \
public: \
static TRenderResourceManagerGenerator *gen(); \
static TRenderResourceManagerGenerator *deps(); \
- \
+ \
private:
//--------------------------------------------------------------------------------
diff --git a/toonz/sources/include/trop_borders.h b/toonz/sources/include/trop_borders.h
index 2d15eebfc..de601f2cb 100644
--- a/toonz/sources/include/trop_borders.h
+++ b/toonz/sources/include/trop_borders.h
@@ -165,7 +165,6 @@ class ImageMesh final : public TSmartObject,
public tcg::Mesh<Vertex, Edge, Face> {};
//--------------------------------------------------------------------------------
-
}
} // namespace TRop::borders
@@ -267,7 +266,6 @@ void readMeshes(const TRasterPT<Pixel> &raster,
ImageMeshesReaderT<Pixel> &reader);
//--------------------------------------------------------------------------------
-
}
} // namespace TRop::borders
diff --git a/toonz/sources/include/tsmartpointer.h b/toonz/sources/include/tsmartpointer.h
index 750cc107e..1f68dc703 100644
--- a/toonz/sources/include/tsmartpointer.h
+++ b/toonz/sources/include/tsmartpointer.h
@@ -87,9 +87,10 @@ private:
};
#define DECLARE_CLASS_CODE \
+ \
private: \
static const TSmartObject::ClassCode m_classCode; \
- \
+ \
public: \
inline static TINT32 getInstanceCount() { \
return TSmartObject::getInstanceCount(m_classCode); \
diff --git a/toonz/sources/include/tsound_t.h b/toonz/sources/include/tsound_t.h
index 466ffb216..2cd567e6d 100644
--- a/toonz/sources/include/tsound_t.h
+++ b/toonz/sources/include/tsound_t.h
@@ -133,10 +133,10 @@ from which it's created.It hasn't reference to the object.
*dstSample++ = *srcSample++;
}
-//----------------------------------------------------------------------------
+ //----------------------------------------------------------------------------
-//! Applies a trasformation (echo, reverb, ect) to the object and returns the
-//! transformed soundtrack
+ //! Applies a trasformation (echo, reverb, ect) to the object and returns the
+ //! transformed soundtrack
TSoundTrackP apply(TSoundTransform *transform) override;
//----------------------------------------------------------------------------
diff --git a/toonz/sources/stdfx/igs_resource_msg_from_err_win.h b/toonz/sources/stdfx/igs_resource_msg_from_err_win.h
index fc1899417..6f20f2781 100644
--- a/toonz/sources/stdfx/igs_resource_msg_from_err_win.h
+++ b/toonz/sources/stdfx/igs_resource_msg_from_err_win.h
@@ -61,29 +61,29 @@ const std::string msg_from_err_(/* 直によんではいけない */
}
/*--- ::GetLastError()値からエラーメッセージを得る ---*/
#ifdef _MSC_VER
- #define igs_resource_msg_from_err(tit, error_message_id) \
- igs::resource::msg_from_err_( \
- tit, error_message_id, TEXT(__FILE__), TEXT(igs_tostr(__LINE__)), \
- TEXT(__FUNCSIG__), TEXT(igs_tostr_(_MSC_VER)), \
- TEXT(igs_tostr(_MSC_FULL_VER)), TEXT(__DATE__), TEXT(__TIME__))
- /*--- エラーメッセージを得る ---*/
- #define igs_resource_msg_from_er(tit) \
- igs::resource::msg_from_err_( \
- tit, NO_ERROR, TEXT(__FILE__), TEXT(igs_tostr(__LINE__)), \
- TEXT(__FUNCSIG__), TEXT(igs_tostr_(_MSC_VER)), \
- TEXT(igs_tostr(_MSC_FULL_VER)), TEXT(__DATE__), TEXT(__TIME__))
+#define igs_resource_msg_from_err(tit, error_message_id) \
+ igs::resource::msg_from_err_( \
+ tit, error_message_id, TEXT(__FILE__), TEXT(igs_tostr(__LINE__)), \
+ TEXT(__FUNCSIG__), TEXT(igs_tostr_(_MSC_VER)), \
+ TEXT(igs_tostr(_MSC_FULL_VER)), TEXT(__DATE__), TEXT(__TIME__))
+/*--- エラーメッセージを得る ---*/
+#define igs_resource_msg_from_er(tit) \
+ igs::resource::msg_from_err_( \
+ tit, NO_ERROR, TEXT(__FILE__), TEXT(igs_tostr(__LINE__)), \
+ TEXT(__FUNCSIG__), TEXT(igs_tostr_(_MSC_VER)), \
+ TEXT(igs_tostr(_MSC_FULL_VER)), TEXT(__DATE__), TEXT(__TIME__))
#else
- #define igs_resource_msg_from_err(tit, error_message_id) \
- igs::resource::msg_from_err_( \
- tit, error_message_id, TEXT(__FILE__), TEXT(igs_tostr(__LINE__)), \
- TEXT(__PRETTY_FUNCTION__), TEXT(__VERSION__), \
- TEXT(__VERSION__), TEXT(__DATE__), TEXT(__TIME__))
- /*--- エラーメッセージを得る ---*/
- #define igs_resource_msg_from_er(tit) \
- igs::resource::msg_from_err_( \
- tit, NO_ERROR, TEXT(__FILE__), TEXT(igs_tostr(__LINE__)), \
- TEXT(__PRETTY_FUNCTION__), TEXT(__VERSION__), \
- TEXT(__VERSION__), TEXT(__DATE__), TEXT(__TIME__))
+#define igs_resource_msg_from_err(tit, error_message_id) \
+ igs::resource::msg_from_err_( \
+ tit, error_message_id, TEXT(__FILE__), TEXT(igs_tostr(__LINE__)), \
+ TEXT(__PRETTY_FUNCTION__), TEXT(__VERSION__), TEXT(__VERSION__), \
+ TEXT(__DATE__), TEXT(__TIME__))
+/*--- エラーメッセージを得る ---*/
+#define igs_resource_msg_from_er(tit) \
+ igs::resource::msg_from_err_( \
+ tit, NO_ERROR, TEXT(__FILE__), TEXT(igs_tostr(__LINE__)), \
+ TEXT(__PRETTY_FUNCTION__), TEXT(__VERSION__), TEXT(__VERSION__), \
+ TEXT(__DATE__), TEXT(__TIME__))
#endif
#endif /* !igs_resource_msg_from_err_h */
diff --git a/toonz/sources/stdfx/stdfx.h b/toonz/sources/stdfx/stdfx.h
index d32644d19..bd0cb0aff 100644
--- a/toonz/sources/stdfx/stdfx.h
+++ b/toonz/sources/stdfx/stdfx.h
@@ -15,6 +15,7 @@ class PaletteFilterFxRenderData;
static const std::string PLUGIN_PREFIX("STD");
#define FX_PLUGIN_DECLARATION(T) \
+ \
public: \
const TPersistDeclaration *getDeclaration() const override;
diff --git a/toonz/sources/tnztools/screenpicker.cpp b/toonz/sources/tnztools/screenpicker.cpp
index 50b6a2f3b..1f3a679a8 100644
--- a/toonz/sources/tnztools/screenpicker.cpp
+++ b/toonz/sources/tnztools/screenpicker.cpp
@@ -64,7 +64,7 @@ void ScreenPicker::mousePressEvent(QWidget *widget, QMouseEvent *me) {
void ScreenPicker::mouseMoveEvent(QWidget *widget, QMouseEvent *me) {
// On fast movements, the mouse release can fire before the mouse movement
- //assert(m_mouseGrabbed); - can cause a crash
+ // assert(m_mouseGrabbed); - can cause a crash
if (!m_mousePressed || !m_mouseGrabbed) return;
QPoint pos(widget->mapToGlobal(me->pos()));
diff --git a/toonz/sources/toonz/main.cpp b/toonz/sources/toonz/main.cpp
index 8fa8452b3..347408c2a 100644
--- a/toonz/sources/toonz/main.cpp
+++ b/toonz/sources/toonz/main.cpp
@@ -92,7 +92,7 @@ const char *systemVarPrefix = "LINETEST";
#else
const char *applicationName = "OpenToonz";
const char *applicationVersion = "1.1";
-const char *applicationRevision = "2";
+const char *applicationRevision = "3";
const char *dllRelativePath = "./toonz6.app/Contents/Frameworks";
#endif
@@ -105,7 +105,7 @@ TEnv::IntVar EnvSoftwareCurrentFontSize("SoftwareCurrentFontSize", 12);
TEnv::StringVar EnvSoftwareCurrentFontWeight("SoftwareCurrentFontWeightIsBold",
"Yes");
-const char *applicationFullName = "OpenToonz 1.1.2";
+const char *applicationFullName = "OpenToonz 1.1.3";
const char *rootVarName = "TOONZROOT";
const char *systemVarPrefix = "TOONZ";
@@ -396,8 +396,8 @@ int main(int argc, char *argv[]) {
fmt.setStencil(true);
QGLFormat::setDefaultFormat(fmt);
- // seems this function should be called at all systems
- // pheraps in some GLUT-implementations initalization is mere formality
+// seems this function should be called at all systems
+// pheraps in some GLUT-implementations initalization is mere formality
#if defined(LINUX) || (defined(_WIN32) && defined(__GNUC__))
glutInit(&argc, argv);
#endif
diff --git a/toonz/sources/toonz/mainwindow.cpp b/toonz/sources/toonz/mainwindow.cpp
index 0896bbffc..c93ebc880 100644
--- a/toonz/sources/toonz/mainwindow.cpp
+++ b/toonz/sources/toonz/mainwindow.cpp
@@ -2272,9 +2272,9 @@ RecentFiles::~RecentFiles() {}
void RecentFiles::addFilePath(QString path, FileType fileType) {
QList<QString> files =
- (fileType == Scene) ? m_recentScenes : (fileType == Level)
- ? m_recentLevels
- : m_recentFlipbookImages;
+ (fileType == Scene)
+ ? m_recentScenes
+ : (fileType == Level) ? m_recentLevels : m_recentFlipbookImages;
int i;
for (i = 0; i < files.size(); i++)
if (files.at(i) == path) files.removeAt(i);
@@ -2399,9 +2399,9 @@ void RecentFiles::saveRecentFiles() {
QList<QString> RecentFiles::getFilesNameList(FileType fileType) {
QList<QString> files =
- (fileType == Scene) ? m_recentScenes : (fileType == Level)
- ? m_recentLevels
- : m_recentFlipbookImages;
+ (fileType == Scene)
+ ? m_recentScenes
+ : (fileType == Level) ? m_recentLevels : m_recentFlipbookImages;
QList<QString> names;
int i;
for (i = 0; i < files.size(); i++) {
@@ -2428,9 +2428,9 @@ void RecentFiles::refreshRecentFilesMenu(FileType fileType) {
menu->setEnabled(false);
else {
CommandId clearActionId =
- (fileType == Scene) ? MI_ClearRecentScene : (fileType == Level)
- ? MI_ClearRecentLevel
- : MI_ClearRecentImage;
+ (fileType == Scene)
+ ? MI_ClearRecentScene
+ : (fileType == Level) ? MI_ClearRecentLevel : MI_ClearRecentImage;
menu->setActions(names);
menu->addSeparator();
QAction *clearAction = CommandManager::instance()->getAction(clearActionId);
diff --git a/toonz/sources/toonzqt/keyframenavigator.cpp b/toonz/sources/toonzqt/keyframenavigator.cpp
index 708f0de87..278295a41 100644
--- a/toonz/sources/toonzqt/keyframenavigator.cpp
+++ b/toonz/sources/toonzqt/keyframenavigator.cpp
@@ -42,14 +42,16 @@ KeyframeNavigator::KeyframeNavigator(QWidget *parent, TFrameHandle *frameHandle)
setObjectName("keyFrameNavigator");
- QPixmap emptyPrevPixmap(23, 23); // set transparent icon to show button's background
+ QPixmap emptyPrevPixmap(
+ 23, 23); // set transparent icon to show button's background
emptyPrevPixmap.fill(Qt::transparent);
QIcon emptyPrevIcon(emptyPrevPixmap);
m_actPreviewKey = new QAction(emptyPrevIcon, tr("Previous Key"), this);
connect(m_actPreviewKey, SIGNAL(triggered()), SLOT(togglePrevKeyAct()));
addAction(m_actPreviewKey);
- QWidget* prevWidget = widgetForAction(m_actPreviewKey); // obtain a widget generated from QAction
+ QWidget *prevWidget = widgetForAction(
+ m_actPreviewKey); // obtain a widget generated from QAction
prevWidget->setObjectName("PreviousKey");
m_actKeyNo = new QAction(createQIconPNG("key_no"), tr("Set Key"), this);
@@ -65,14 +67,16 @@ KeyframeNavigator::KeyframeNavigator(QWidget *parent, TFrameHandle *frameHandle)
connect(m_actKeyTotal, SIGNAL(triggered()), SLOT(toggleKeyAct()));
addAction(m_actKeyTotal);
- QPixmap emptyNextPixmap(23, 23); // set transparent icon to show button's background
+ QPixmap emptyNextPixmap(
+ 23, 23); // set transparent icon to show button's background
emptyNextPixmap.fill(Qt::transparent);
QIcon emptyNextIcon(emptyNextPixmap);
m_actNextKey = new QAction(emptyNextIcon, tr("Next Key"), this);
connect(m_actNextKey, SIGNAL(triggered()), SLOT(toggleNextKeyAct()));
addAction(m_actNextKey);
- QWidget* nextWidget = widgetForAction(m_actNextKey); // obtain a widget generated from QAction
+ QWidget *nextWidget =
+ widgetForAction(m_actNextKey); // obtain a widget generated from QAction
nextWidget->setObjectName("NextKey");
}