mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-06-28 06:30:32 +00:00
Various fixes
This commit is contained in:
committed by
Noisyfox
parent
a50c5a2b7a
commit
fe78e40cb4
@@ -130,6 +130,8 @@ bool ColorRGB::operator < (const ColorRGB& other) const
|
||||
for (size_t i = 0; i < 3; ++i) {
|
||||
if (m_data[i] < other.m_data[i])
|
||||
return true;
|
||||
else if (m_data[i] > other.m_data[i])
|
||||
return false;
|
||||
}
|
||||
|
||||
return false;
|
||||
@@ -140,6 +142,8 @@ bool ColorRGB::operator > (const ColorRGB& other) const
|
||||
for (size_t i = 0; i < 3; ++i) {
|
||||
if (m_data[i] > other.m_data[i])
|
||||
return true;
|
||||
else if (m_data[i] < other.m_data[i])
|
||||
return false;
|
||||
}
|
||||
|
||||
return false;
|
||||
@@ -179,6 +183,8 @@ bool ColorRGBA::operator < (const ColorRGBA& other) const
|
||||
for (size_t i = 0; i < 3; ++i) {
|
||||
if (m_data[i] < other.m_data[i])
|
||||
return true;
|
||||
else if (m_data[i] > other.m_data[i])
|
||||
return false;
|
||||
}
|
||||
|
||||
return false;
|
||||
@@ -189,6 +195,8 @@ bool ColorRGBA::operator > (const ColorRGBA& other) const
|
||||
for (size_t i = 0; i < 3; ++i) {
|
||||
if (m_data[i] > other.m_data[i])
|
||||
return true;
|
||||
else if (m_data[i] < other.m_data[i])
|
||||
return false;
|
||||
}
|
||||
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user