Commit 75b05553 authored by Jan Kremer's avatar Jan Kremer

Added little safety feature for debugging.

parent 0ecf4154
......@@ -37,15 +37,11 @@ void APlot3D::InitPoints()
{
UHDF5Library::ImportData(FileName, X, Y, Z, U, V, W);
int32 Num;
if (OverridePointCount)
int32 Num = X.Num();
if (OverridePointCount && PointCount <= Num)
{
Num = PointCount;
}
else
{
Num = X.Num();
}
IsBrushed = TArray<bool>();
IsBrushed.Init(false, Num);
......
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