making sprite 3d flag optional