diff --git a/toonz/sources/colorfx/colorfx.cpp b/toonz/sources/colorfx/colorfx.cpp index f6cedc9..492b3b2 100644 --- a/toonz/sources/colorfx/colorfx.cpp +++ b/toonz/sources/colorfx/colorfx.cpp @@ -1,6 +1,6 @@ -// #include "tpluginmanager.h" + #include "strokestyles.h" #include "regionstyles.h" #include "rasterstyles.h" diff --git a/toonz/sources/colorfx/colorfxutils.cpp b/toonz/sources/colorfx/colorfxutils.cpp index 3dcbae1..1073cd2 100644 --- a/toonz/sources/colorfx/colorfxutils.cpp +++ b/toonz/sources/colorfx/colorfxutils.cpp @@ -1,7 +1,5 @@ -//#include "tutil.h" -//#include "tgl.h" #include "colorfxutils.h" #include "drawutil.h" #include "tregion.h" @@ -152,8 +150,6 @@ void SFlashUtils::PointVector2QuadsArray(const std::vector &pv, std::vector &quadArray, std::vector &toBeDeleted, const bool isRounded) const { - std::vector::const_iterator ipv = pv.begin(); - std::vector::const_iterator ipve = pv.end(); int nbPv = pv.size(); quadArray.clear(); @@ -235,17 +231,14 @@ void SFlashUtils::drawRegionOutline(TFlash &flash, const bool isRounded) const { int SFlashUtils::nbDiffVerts(const std::vector &pv) const { std::vector lpv; - bool isMissing[4] = {true, true, true, true}; if (pv.size() == 0) return 0; lpv.push_back(pv[0]); - isMissing[0] = false; for (int i = 1; i < (int)pv.size(); i++) { bool isDiff = true; for (int j = 0; j < (int)lpv.size() && isDiff; j++) isDiff = lpv[j] == pv[i] ? false : isDiff; if (isDiff) { lpv.push_back(pv[i]); - isMissing[i] = false; } } return lpv.size(); diff --git a/toonz/sources/colorfx/regionstyles.cpp b/toonz/sources/colorfx/regionstyles.cpp index 9a9d472..65b2ba2 100644 --- a/toonz/sources/colorfx/regionstyles.cpp +++ b/toonz/sources/colorfx/regionstyles.cpp @@ -4,18 +4,10 @@ #include "tgl.h" #include "tcolorfunctions.h" #include "trandom.h" -//#include "tsystem.h" -//#include "tvectorrenderdata.h" #include "colorfxutils.h" -//#include "tgl.h" -//#include "tregionoutline.h" -//#include "tpalette.h" -//#include "tvectorimage.h" -//#include "tstroke.h" #include "tflash.h" #include "tregion.h" #include "tcurves.h" -//#include "drawutil.h" #include "tmathutil.h" #include "tstencilcontrol.h" @@ -663,17 +655,14 @@ double ShadowStyle2::getParamValue(TColorStyle::double_tag, int index) const { static int nbDiffVerts(const std::vector &pv) { std::vector lpv; - bool isMissing[4] = {true, true, true, true}; if (pv.size() == 0) return 0; lpv.push_back(pv[0]); - isMissing[0] = false; for (int i = 1; i < (int)pv.size(); i++) { bool isDiff = true; for (int j = 0; j < (int)lpv.size() && isDiff; j++) isDiff = lpv[j] == pv[i] ? false : isDiff; if (isDiff) { lpv.push_back(pv[i]); - isMissing[i] = false; } } return lpv.size(); diff --git a/toonz/sources/stdfx/iwa_soapbubblefx.cpp b/toonz/sources/stdfx/iwa_soapbubblefx.cpp index d759386..a1d278a 100644 --- a/toonz/sources/stdfx/iwa_soapbubblefx.cpp +++ b/toonz/sources/stdfx/iwa_soapbubblefx.cpp @@ -717,7 +717,7 @@ void Iwa_SoapBubbleFx::processNoise(float* thickness_map_p, float* depth_map_p, float* ph_p = noise_phases; srand(0); - /* Set the phase differences (0-2��) */ + /* Set the phase differences (0-2) */ for (int i = 0; i < whole_noise_amount; i++, ph_p++) { *ph_p = (float)rand() / (float)RAND_MAX * 2.0f * PI; } @@ -1062,4 +1062,4 @@ void Iwa_SoapBubbleFx::fitThicknessPatches(TRasterP thickRas, //============================================================================== -FX_PLUGIN_IDENTIFIER(Iwa_SoapBubbleFx, "iwa_SoapBubbleFx"); \ No newline at end of file +FX_PLUGIN_IDENTIFIER(Iwa_SoapBubbleFx, "iwa_SoapBubbleFx");