Commit 1fee9273 authored by schurade's avatar schurade

[CHANGE] 5x5 pencil size works now

parent 732eb514
......@@ -246,6 +246,20 @@ void WMPaintTexture::doPaint()
}
break;
}
case 2:
{
data[ voxelNum ] = m_paintIndex->get();
std::vector< size_t > ids = m_grid->getNeighbours27( voxelNum );
for ( size_t i = 0; i < ids.size(); ++i )
{
std::vector< size_t > allIds = m_grid->getNeighbours27( ids[i] );
for ( size_t k = 0; k < ids.size(); ++k )
{
data[ allIds[k] ] = m_paintIndex->get();
}
}
break;
}
default:
break;
}
......
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