Blender  V3.3
Classes | Functions
blender::bke::crazyspace Namespace Reference

Classes

struct  GeometryDeformation
 

Functions

GeometryDeformation get_evaluated_curves_deformation (const Depsgraph &depsgraph, const Object &ob_orig)
 

Function Documentation

◆ get_evaluated_curves_deformation()

GeometryDeformation blender::bke::crazyspace::get_evaluated_curves_deformation ( const Depsgraph depsgraph,
const Object ob_orig 
)

During evaluation of the object, deformation data may have been generated for this object. This function either retrieves the deformation data from the evaluated object, or falls back to returning the original data.

Definition at line 595 of file crazyspace.cc.

References BLI_assert, GeometryComponentEditData::curves_edit_hints_, blender::bke::CurvesEditHints::curves_id_orig, Object::data, blender::bke::crazyspace::GeometryDeformation::deform_mats, blender::bke::CurvesEditHints::deform_mats, DEG_get_evaluated_object(), depsgraph, Curves::geometry, Object_Runtime::geometry_set_eval, GeometrySet::get_component_for_read(), CurveComponent::get_for_read(), OB_CURVES, blender::bke::CurvesGeometry::points_num(), blender::bke::crazyspace::GeometryDeformation::positions, blender::bke::CurvesGeometry::positions(), blender::bke::CurvesEditHints::positions, Object::runtime, Object::type, and blender::bke::CurvesGeometry::wrap().

Referenced by blender::ed::sculpt_paint::CombOperationExecutor::comb_projected(), blender::ed::sculpt_paint::CombOperationExecutor::comb_spherical(), blender::ed::sculpt_paint::DeleteOperationExecutor::execute(), blender::ed::sculpt_paint::DensitySubtractOperationExecutor::execute(), blender::ed::sculpt_paint::SlideOperationExecutor::execute(), blender::ed::sculpt_paint::PuffOperationExecutor::find_curve_weights_projected(), blender::ed::sculpt_paint::PuffOperationExecutor::find_curves_weights_spherical(), blender::ed::sculpt_paint::SmoothOperationExecutor::find_projected_smooth_factors(), blender::ed::sculpt_paint::SmoothOperationExecutor::find_spherical_smooth_factors(), blender::ed::sculpt_paint::CurvesEffectOperationExecutor::gather_influences_projected(), blender::ed::sculpt_paint::CurvesEffectOperationExecutor::gather_influences_spherical(), blender::ed::sculpt_paint::SelectionPaintOperationExecutor::paint_curve_selection_projected(), blender::ed::sculpt_paint::SelectionPaintOperationExecutor::paint_curve_selection_spherical(), blender::ed::sculpt_paint::SelectionPaintOperationExecutor::paint_point_selection_projected(), blender::ed::sculpt_paint::SelectionPaintOperationExecutor::paint_point_selection_spherical(), blender::ed::sculpt_paint::PinchOperationExecutor::pinch_projected(), blender::ed::sculpt_paint::PinchOperationExecutor::pinch_spherical(), blender::ed::sculpt_paint::DensityAddOperationExecutor::prepare_curve_roots_kdtrees(), blender::ed::sculpt_paint::SnakeHookOperatorExecutor::projected_snake_hook(), blender::ed::sculpt_paint::sample_curves_3d_brush(), blender::ed::sculpt_paint::SnakeHookOperatorExecutor::spherical_snake_hook(), and blender::ed::sculpt_paint::use_add_density_mode().