Complete rewrite of  https://github.com/GarageGames/Torque3D/pull/566

Removed all the C++ 11 code
Fixed a bug where you couldn't paint the last pixel on the edges.