fix black sample

This commit is contained in:
2018-08-24 15:53:05 +02:00
parent 1c3e1b7e55
commit ea09b4edb7
2 changed files with 12 additions and 0 deletions

View File

@@ -47,6 +47,14 @@ struct StrokeSample
float size = 0;
float flow = 0;
float angle = 0;
bool valid() const
{
return !(
glm::any(glm::isnan(col)) ||
glm::any(glm::isnan(pos)) ||
glm::any(glm::isnan(origin))
);
}
};
class BrushMesh