Skip to content

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

C

Remove Colormap property binding in PngWriterProperties

Anderson Prado062bff17b29e
diff --git a/toonz/sources/image/png/tiio_png.cpp b/toonz/sources/image/png/tiio_png.cpp
index 0451edbba..5666ee77a 100644
--- a/toonz/sources/image/png/tiio_png.cpp
+++ b/toonz/sources/image/png/tiio_png.cpp
@@ -569,14 +569,13 @@ private:
//=========================================================
Tiio::PngWriterProperties::PngWriterProperties()
- : m_matte("Alpha Channel", true), m_colormap("Colormap", nullptr) {
+ : m_matte("Alpha Channel", true) {
bind(m_matte);
- bind(m_colormap);
+ // Colormap intentionally unbound to prevent XML serialization
}
void Tiio::PngWriterProperties::updateTranslation() {
m_matte.setQStringName(tr("Alpha Channel"));
- m_colormap.setQStringName(tr("Colormap"));
}
//=========================================================
@@ -886,4 +885,4 @@ public:
Tiio::Reader *Tiio::makePngReader() { return new PngReader(); }
-Tiio::Writer *Tiio::makePngWriter() { return new PngWriter(); }
+Tiio::Writer *Tiio::makePngWriter() { return new PngWriter(); }
\ No newline at end of file
diff --git a/toonz/sources/image/png/tiio_png.h b/toonz/sources/image/png/tiio_png.h
index 4dfa62923..4101c34d8 100644
--- a/toonz/sources/image/png/tiio_png.h
+++ b/toonz/sources/image/png/tiio_png.h
@@ -19,7 +19,6 @@ class PngWriterProperties final : public TPropertyGroup {
public:
// TEnumProperty m_pixelSize;
TBoolProperty m_matte;
- TPointerProperty m_colormap;
PngWriterProperties();
void updateTranslation() override;
@@ -32,4 +31,4 @@ Tiio::Writer *makePngWriter();
} // namespace Tiio
-#endif // TIIO_PNG_INCLUDED
+#endif // TIIO_PNG_INCLUDED
\ No newline at end of file