Differential D16057 Diff 59051 source/blender/editors/space_spreadsheet/spreadsheet_data_source_geometry.cc
Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_spreadsheet/spreadsheet_data_source_geometry.cc
| Show All 19 Lines | |||||
| #include "DNA_ID.h" | #include "DNA_ID.h" | ||||
| #include "DNA_mesh_types.h" | #include "DNA_mesh_types.h" | ||||
| #include "DNA_meshdata_types.h" | #include "DNA_meshdata_types.h" | ||||
| #include "DNA_space_types.h" | #include "DNA_space_types.h" | ||||
| #include "DNA_userdef_types.h" | #include "DNA_userdef_types.h" | ||||
| #include "DEG_depsgraph_query.h" | #include "DEG_depsgraph_query.h" | ||||
| #include "ED_curves_sculpt.h" | #include "ED_curves.h" | ||||
| #include "ED_spreadsheet.h" | #include "ED_spreadsheet.h" | ||||
| #include "NOD_geometry_nodes_lazy_function.hh" | #include "NOD_geometry_nodes_lazy_function.hh" | ||||
| #include "NOD_geometry_nodes_log.hh" | #include "NOD_geometry_nodes_log.hh" | ||||
| #include "BLT_translation.h" | #include "BLT_translation.h" | ||||
| #include "RNA_access.h" | #include "RNA_access.h" | ||||
| ▲ Show 20 Lines • Show All 223 Lines • ▼ Show 20 Lines | case GEO_COMPONENT_TYPE_MESH: { | ||||
| return false; | return false; | ||||
| } | } | ||||
| return true; | return true; | ||||
| } | } | ||||
| case GEO_COMPONENT_TYPE_CURVE: { | case GEO_COMPONENT_TYPE_CURVE: { | ||||
| if (object_orig->type != OB_CURVES) { | if (object_orig->type != OB_CURVES) { | ||||
| return false; | return false; | ||||
| } | } | ||||
| if (object_orig->mode != OB_MODE_SCULPT_CURVES) { | if (!ELEM(object_orig->mode, OB_MODE_SCULPT_CURVES, OB_MODE_EDIT)) { | ||||
| return false; | return false; | ||||
| } | } | ||||
| return true; | return true; | ||||
| } | } | ||||
| default: | default: | ||||
| return false; | return false; | ||||
| } | } | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 57 Lines • ▼ Show 20 Lines | switch (component_->type()) { | ||||
| } | } | ||||
| case GEO_COMPONENT_TYPE_CURVE: { | case GEO_COMPONENT_TYPE_CURVE: { | ||||
| BLI_assert(object_eval_->type == OB_CURVES); | BLI_assert(object_eval_->type == OB_CURVES); | ||||
| BLI_assert(object_eval_->mode == OB_MODE_SCULPT_CURVES); | BLI_assert(object_eval_->mode == OB_MODE_SCULPT_CURVES); | ||||
| const CurveComponent &component = static_cast<const CurveComponent &>(*component_); | const CurveComponent &component = static_cast<const CurveComponent &>(*component_); | ||||
| const Curves &curves_id = *component.get_for_read(); | const Curves &curves_id = *component.get_for_read(); | ||||
| switch (domain_) { | switch (domain_) { | ||||
| case ATTR_DOMAIN_POINT: | case ATTR_DOMAIN_POINT: | ||||
| return sculpt_paint::retrieve_selected_points(curves_id, indices); | return curves::retrieve_selected_points(curves_id, indices); | ||||
| case ATTR_DOMAIN_CURVE: | case ATTR_DOMAIN_CURVE: | ||||
| return sculpt_paint::retrieve_selected_curves(curves_id, indices); | return curves::retrieve_selected_curves(curves_id, indices); | ||||
| default: | default: | ||||
| BLI_assert_unreachable(); | BLI_assert_unreachable(); | ||||
| } | } | ||||
| return full_range; | return full_range; | ||||
| } | } | ||||
| default: | default: | ||||
| return full_range; | return full_range; | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 158 Lines • Show Last 20 Lines | |||||