Commit 74737606 authored by L. E. Segovia's avatar L. E. Segovia

Fix VectorEditable not promoting vectors to colors

parent 48a1d837
......@@ -113,7 +113,9 @@ bool VectorEditable::parseComment(const std::string& comment)
float fmin, fmax;
int numParsed = sscanf(comment.c_str(), "#%f,%f", &fmin, &fmax);
if (numParsed == 2) {
isColor = false;
if (fmin < 0.0 || fmax > 1.0) {
isColor = false;
}
min = fmin;
max = fmax;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment