Skip to content

armgit / krita

Public Imported from GitHub
0

Krita is a free and open source cross-platform application that offers an end-to-end solution for creating digital art files from scratch built on the KDE and Qt frameworks.

C++

Add a warning about a hack in KisTextureOptionData

Dmitry Kazakovb471cb705255
diff --git a/plugins/paintops/libpaintop/KisTextureOptionData.cpp b/plugins/paintops/libpaintop/KisTextureOptionData.cpp
index 809cc17089..68476d24a9 100644
--- a/plugins/paintops/libpaintop/KisTextureOptionData.cpp
+++ b/plugins/paintops/libpaintop/KisTextureOptionData.cpp
@@ -29,6 +29,11 @@ bool KisTextureOptionData::read(const KisPropertiesConfiguration *setting)
invert = setting->getBool("Texture/Pattern/Invert");
autoInvertOnErase = setting->getBool("Texture/Pattern/AutoInvertOnErase");
+ // TODO: we use a hack here and explicitly do not load MaximumOffsetX/Y
+ // here, since they are updated by the model when a pattern is loaded.
+ // This is a bad design, we should convert these members into a lager's
+ // reader in the model and let the values to be calculated on the fly.
+
return true;
}