Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_spreadsheet/space_spreadsheet.cc
| Show First 20 Lines • Show All 120 Lines • ▼ Show 20 Lines | static std::unique_ptr<SpreadsheetDrawer> generate_spreadsheet_drawer(const bContext *C) | ||||
| if (used_id == nullptr) { | if (used_id == nullptr) { | ||||
| return {}; | return {}; | ||||
| } | } | ||||
| const ID_Type id_type = GS(used_id->name); | const ID_Type id_type = GS(used_id->name); | ||||
| if (id_type != ID_OB) { | if (id_type != ID_OB) { | ||||
| return {}; | return {}; | ||||
| } | } | ||||
| Object *object_orig = (Object *)used_id; | Object *object_orig = (Object *)used_id; | ||||
| if (object_orig->type != OB_MESH) { | if (!ELEM(object_orig->type, OB_MESH, OB_POINTCLOUD)) { | ||||
| return {}; | return {}; | ||||
| } | } | ||||
| Object *object_eval = DEG_get_evaluated_object(depsgraph, object_orig); | Object *object_eval = DEG_get_evaluated_object(depsgraph, object_orig); | ||||
| if (object_eval == nullptr) { | if (object_eval == nullptr) { | ||||
| return {}; | return {}; | ||||
| } | } | ||||
| return spreadsheet_drawer_from_geometry_attributes(C, object_eval); | return spreadsheet_drawer_from_geometry_attributes(C, object_eval); | ||||
| ▲ Show 20 Lines • Show All 132 Lines • Show Last 20 Lines | |||||