Previously this function would return `PAINT_MODE_TEXTURE_2D`. This would result `paint_space_stroke_enabled` to return true, when it shouldn't for Grease Pencil .
Previously this function would return `PAINT_MODE_TEXTURE_2D`. This would result `paint_space_stroke_enabled` to return true, when it shouldn't for Grease Pencil .