Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_spreadsheet/spreadsheet_column.cc
| /* SPDX-License-Identifier: GPL-2.0-or-later */ | /* SPDX-License-Identifier: GPL-2.0-or-later */ | ||||
| #include "DNA_space_types.h" | #include "DNA_space_types.h" | ||||
| #include "MEM_guardedalloc.h" | #include "MEM_guardedalloc.h" | ||||
| #include "BLI_color.hh" | #include "BLI_color.hh" | ||||
| #include "BLI_cpp_type.hh" | |||||
| #include "BLI_hash.hh" | #include "BLI_hash.hh" | ||||
| #include "BLI_math_vec_types.hh" | #include "BLI_math_vec_types.hh" | ||||
| #include "BLI_string.h" | #include "BLI_string.h" | ||||
| #include "BLI_string_ref.hh" | #include "BLI_string_ref.hh" | ||||
| #include "BKE_geometry_set.hh" | #include "BKE_geometry_set.hh" | ||||
| #include "FN_cpp_type.hh" | |||||
| #include "spreadsheet_column.hh" | #include "spreadsheet_column.hh" | ||||
| #include "spreadsheet_column_values.hh" | #include "spreadsheet_column_values.hh" | ||||
| namespace blender::ed::spreadsheet { | namespace blender::ed::spreadsheet { | ||||
| eSpreadsheetColumnValueType cpp_type_to_column_type(const fn::CPPType &type) | eSpreadsheetColumnValueType cpp_type_to_column_type(const CPPType &type) | ||||
| { | { | ||||
| if (type.is<bool>()) { | if (type.is<bool>()) { | ||||
| return SPREADSHEET_VALUE_TYPE_BOOL; | return SPREADSHEET_VALUE_TYPE_BOOL; | ||||
| } | } | ||||
| if (type.is<int>()) { | if (type.is<int>()) { | ||||
| return SPREADSHEET_VALUE_TYPE_INT32; | return SPREADSHEET_VALUE_TYPE_INT32; | ||||
| } | } | ||||
| if (type.is<float>()) { | if (type.is<float>()) { | ||||
| ▲ Show 20 Lines • Show All 76 Lines • Show Last 20 Lines | |||||