fixed tasksys.cpp for 3d tasking