|
Blender V5.3
|
Classes | |
| struct | DegComponentIdentifier |
| struct | PasteFCurve |
| struct | PathValue |
| struct | TransformableRelations |
| struct | TransformFCurves |
Typedefs | |
| using | ClipboardData = Map<StringRefNull, Array<FCurve *>> |
| using | PasteMap = Map<AnimTransformable *, StringRefNull> |
Enumerations | |
| enum | AssetModifyMode { MODIFY_ADJUST = 0 , MODIFY_REPLACE , MODIFY_ADD , MODIFY_REMOVE } |
| enum class | AnimationPasteOffset { NONE , CURRENT_FRAME } |
Variables | |
| static const EnumPropertyItem | prop_asset_overwrite_modes [] |
| constexpr const char * | clipboard_name = "world_space_buffer.blend" |
Operators | |
| enum class | CopyRange : uint8_t { CUSTOM , PLAYBACK_RANGE } |
| const EnumPropertyItem | rna_enum_copy_range_items [] |
| const EnumPropertyItem | rna_enum_animation_paste_offset_items [] |
| static wmOperatorStatus | world_space_copy_exec (bContext *C, wmOperator *op) |
| static bool | world_space_copy_poll (bContext *C) |
| static bool | has_constraints (const Span< AnimTransformable > transformables) |
| static wmOperatorStatus | world_space_paste_exec (bContext *C, wmOperator *op) |
| static bool | world_space_paste_poll (bContext *C) |
| using blender::ed::animrig::ClipboardData = Map<StringRefNull, Array<FCurve *>> |
Definition at line 46 of file world_space_copy.cc.
Definition at line 48 of file world_space_copy.cc.
|
strong |
| Enumerator | |
|---|---|
| NONE | Paste data to the same frames it was copied from. |
| CURRENT_FRAME | Paste keys starting at current frame. |
Definition at line 112 of file world_space_copy.cc.
| Enumerator | |
|---|---|
| MODIFY_ADJUST | |
| MODIFY_REPLACE | |
| MODIFY_ADD | |
| MODIFY_REMOVE | |
Definition at line 475 of file anim_asset_ops.cc.
|
strong |
| Enumerator | |
|---|---|
| CUSTOM | |
| PLAYBACK_RANGE | |
Definition at line 847 of file world_space_copy.cc.
| void blender::ed::animrig::ANIM_OT_world_space_copy | ( | wmOperatorType * | ot | ) |
Definition at line 910 of file world_space_copy.cc.
References ANIM_OT_world_space_copy(), blender::wmOperatorType::description, blender::wmOperatorType::exec, blender::wmOperatorType::flag, blender::wmOperatorType::idname, INT_MAX, blender::wmOperatorType::name, blender::OPTYPE_REGISTER, PLAYBACK_RANGE, blender::wmOperatorType::poll, blender::RNA_def_enum(), blender::RNA_def_int(), rna_enum_copy_range_items, blender::wmOperatorType::srna, world_space_copy_exec(), and world_space_copy_poll().
Referenced by ANIM_OT_world_space_copy(), blender::ED_operatortypes_anim(), and POSELIB_OT_screenshot_preview().
| void blender::ed::animrig::ANIM_OT_world_space_paste | ( | wmOperatorType * | ot | ) |
Definition at line 1021 of file world_space_copy.cc.
References ANIM_OT_world_space_paste(), blender::wmOperatorType::description, blender::wmOperatorType::exec, blender::wmOperatorType::flag, blender::wmOperatorType::idname, blender::wmOperatorType::name, NONE, blender::OPTYPE_REGISTER, blender::OPTYPE_UNDO, blender::wmOperatorType::poll, blender::RNA_def_enum(), rna_enum_animation_paste_offset_items, blender::wmOperatorType::srna, world_space_paste_exec(), and world_space_paste_poll().
Referenced by ANIM_OT_world_space_paste(), blender::ED_operatortypes_anim(), and POSELIB_OT_screenshot_preview().
|
static |
Ensures that all FCurves exist to paste keys into and they have keys on all required frames. The returned array will have the same length as the given transformables.
Definition at line 580 of file world_space_copy.cc.
References blender::FCurve::bezt, blender::BKE_fcurve_bezt_binarysearch_index(), blender::BKE_fcurve_keyframe_move_value_with_handles(), blender::BLI_assert(), build_fcurves_for_paste(), blender::ed::animrig::TransformFCurves::channelbag, ensure_baked_fcurves(), blender::ed::AnimTransformable::get_rotation_mode(), blender::Span< T >::index_range(), blender::ed::AnimTransformable::LOCATION, blender::ed::animrig::TransformFCurves::location, blender::Bounds< T >::max, blender::Bounds< T >::min, blender::ed::AnimTransformable::owner_id(), blender::ed::AnimTransformable::rna_path_to_property(), blender::ed::AnimTransformable::rna_path_to_rotation_mode(), blender::ROT_MODE_EUL, blender::ed::AnimTransformable::ROTATION, blender::ed::animrig::TransformFCurves::rotation, blender::ed::animrig::TransformFCurves::rotation_mode, blender::ed::AnimTransformable::SCALE, blender::ed::animrig::TransformFCurves::scale, blender::Span< T >::size(), and blender::FCurve::totvert.
Referenced by build_fcurves_for_paste(), and paste_world_space().
|
static |
Definition at line 190 of file world_space_copy.cc.
References blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::add(), blender::ed::animrig::TransformableRelations::ancestors, build_transformable_relations(), blender::DEG_foreach_dependent_component(), blender::ed::animrig::TransformableRelations::done, blender::MutableSpan< T >::index_range(), blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::keys(), blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::lookup(), blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::lookup_default(), blender::MutableSpan< T >::size(), and transformable_to_deg_identifier().
Referenced by build_transformable_relations(), and depsgraph_sorted_transformables().
|
static |
Definition at line 354 of file world_space_copy.cc.
References blender::ed::AXIS_MUTABLE_ALL, blender::BLI_assert(), clean_baked_fcurves(), blender::animrig::Channelbag::fcurve_remove(), blender::ed::AnimTransformable::get_property(), is_fcurve_flat(), and blender::ed::AnimTransformable::set_property().
Referenced by clean_baked_fcurves(), and paste_world_space().
|
static |
Definition at line 76 of file anim_asset_ops.cc.
References blender::Vector< T, InlineBufferCapacity, Allocator >::append(), blender::BLI_assert(), construct_pose_rna_paths(), blender::PointerRNA::data, blender::Vector< T, InlineBufferCapacity, Allocator >::extend(), blender::animrig::get_keyable_id_property_paths(), blender::ROT_MODE_AXISANGLE, blender::ROT_MODE_QUAT, blender::ROT_MODE_XYZ, blender::ROT_MODE_XZY, blender::ROT_MODE_YXZ, blender::ROT_MODE_YZX, blender::ROT_MODE_ZXY, blender::ROT_MODE_ZYX, blender::bPoseChannel::rotmode, and blender::PointerRNA::type.
Referenced by construct_pose_rna_paths(), extract_pose(), and generate_path_values().
|
static |
| range | inclusive/exclusive. |
Definition at line 442 of file world_space_copy.cc.
References blender::Set< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::add(), blender::FCurve::array_index, blender::BKE_fcurve_create(), blender::BKE_report(), blender::BKE_reportf(), blender::BKE_tempdir_base(), blender::BLI_assert(), BLI_path_join, clipboard_name, copy_world_space(), blender::DAG_EVAL_VIEWPORT, blender::DEG_evaluate_on_framechange(), blender::DEG_graph_build_from_ids(), blender::DEG_graph_free(), blender::DEG_graph_new(), FILE_MAX, blender::FCurve::fpt, blender::bAction::frame_end, blender::bAction::frame_start, get_unique_ids(), blender::ed::AnimTransformable::get_world_space(), blender::ID_AC, blender::Array< T, InlineBufferCapacity, Allocator >::index_range(), blender::Span< T >::index_range(), matrix_to_fcurves(), blender::Bounds< T >::max, blender::MEM_new_array_uninitialized(), blender::Bounds< T >::min, blender::ed::AnimTransformable::name(), blender::ed::AnimTransformable::OBJECT, blender::RPT_INFO, blender::RPT_WARNING, blender::Bounds< T >::size(), blender::Set< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::size(), blender::Span< T >::size(), and blender::FCurve::totvert.
Referenced by copy_world_space(), and world_space_copy_exec().
|
static |
Definition at line 258 of file anim_asset_ops.cc.
References blender::AS_asset_library_load(), blender::ID::asset_data, blender::BKE_asset_metadata_catalog_id_set(), blender::BKE_id_rename(), blender::BLI_assert(), C, blender::asset_system::AssetCatalog::catalog_id, create_pose_asset_local(), blender::CTX_data_main(), ensure_asset_ui_visible(), extract_pose(), blender::asset_system::AssetCatalogPath::from_user_input(), blender::G, blender::ed::asset::generate_preview(), get_selected_pose_objects(), blender::bAction::id, blender::Vector< T, InlineBufferCapacity, Allocator >::is_empty(), blender::ed::asset::library_ensure_catalogs_in_path(), blender::ed::asset::mark_id(), MAX_NAME, NA_ADDED, NC_ASSET, ND_ASSET_LIST, blender::OPERATOR_CANCELLED, blender::OPERATOR_FINISHED, blender::wmOperator::ptr, blender::ed::asset::refresh_asset_library(), blender::RNA_string_get(), blender::ed::asset::shelf::show_catalog_in_visible_shelves(), blender::asset_system::AssetCatalog::simple_name, and blender::WM_main_add_notifier().
Referenced by create_pose_asset_local(), and pose_asset_create_exec().
|
static |
Definition at line 305 of file anim_asset_ops.cc.
References blender::AS_asset_library_load(), blender::ID::asset_data, blender::bke::asset_edit_id_save_as(), blender::ASSET_LIBRARY_CUSTOM, blender::ASSET_LIBRARY_USE_REMOTE_URL, blender::BKE_asset_metadata_catalog_id_set(), blender::BKE_id_free(), blender::BKE_preferences_asset_library_find_index(), blender::BKE_report(), blender::BLI_assert(), BLI_assert_msg, C, blender::asset_system::AssetCatalog::catalog_id, create_pose_asset_user_library(), blender::CTX_data_main(), blender::AssetLibraryReference::custom_library_index, ensure_asset_ui_visible(), extract_pose(), blender::bUserAssetLibrary::flag, blender::asset_system::AssetCatalogPath::from_user_input(), blender::G, blender::ed::asset::generate_preview(), get_selected_pose_objects(), blender::bAction::id, blender::Vector< T, InlineBufferCapacity, Allocator >::is_empty(), blender::ed::asset::library_ensure_catalogs_in_path(), blender::ed::asset::mark_id(), MAX_NAME, NA_ADDED, NC_ASSET, ND_ASSET_LIST, blender::OPERATOR_CANCELLED, blender::OPERATOR_FINISHED, blender::wmOperator::ptr, blender::ed::asset::refresh_asset_library(), blender::wmOperator::reports, blender::RNA_string_get(), blender::RPT_ERROR, blender::ed::asset::shelf::show_catalog_in_visible_shelves(), blender::asset_system::AssetCatalog::simple_name, blender::AssetLibraryReference::type, blender::U, and blender::WM_main_add_notifier().
Referenced by create_pose_asset_user_library(), and pose_asset_create_exec().
|
static |
Definition at line 242 of file world_space_copy.cc.
References blender::Vector< T, InlineBufferCapacity, Allocator >::append(), build_transformable_relations(), and depsgraph_sorted_transformables().
Referenced by depsgraph_sorted_transformables(), and paste_world_space().
|
static |
Check that the newly created asset is visible SOMEWHERE in Blender. If not already visible, open the asset shelf on the current 3D view. The reason for not always doing that is that it might be annoying in case you have 2 3D viewports open, but you want the asset shelf on only one of them, or you work out of the asset browser.
Definition at line 195 of file anim_asset_ops.cc.
References blender::bScreen::areabase, blender::BKE_area_find_region_type(), blender::SpaceFile::browse_mode, C, blender::CTX_wm_area(), blender::CTX_wm_manager(), blender::ED_region_visibility_change_update(), ensure_asset_ui_visible(), blender::FILE_BROWSE_MODE_ASSETS, blender::ARegion::flag, blender::RGN_FLAG_HIDDEN, blender::RGN_TYPE_ASSET_SHELF, blender::ARegion::runtime, blender::SPACE_FILE, blender::SPACE_VIEW3D, blender::ScrArea::spacedata, blender::SpaceType::spaceid, blender::ScrArea::type, blender::bke::ARegionRuntime::visible, and blender::WM_window_get_active_screen().
Referenced by create_pose_asset_local(), create_pose_asset_user_library(), and ensure_asset_ui_visible().
|
static |
| range | inclusive/exclusive. |
Definition at line 274 of file world_space_copy.cc.
References blender::FCurve::bezt, blender::BKE_fcurve_bezt_binarysearch_index(), blender::BLI_assert(), blender::ed::animrig::PasteFCurve::created_on_paste, ensure_baked_fcurves(), blender::ed::animrig::PasteFCurve::fcurve, blender::animrig::Channelbag::fcurve_ensure(), blender::ed::AnimTransformable::fcurve_group_name(), blender::FCurve::fpt, blender::MutableSpan< T >::index_range(), blender::Bounds< T >::min, blender::ed::animrig::PasteFCurve::paste_start_index, blender::PROP_FLOAT, blender::PROP_NONE, and blender::FCurve::totvert.
Referenced by build_fcurves_for_paste(), and ensure_baked_fcurves().
|
static |
Definition at line 118 of file anim_asset_ops.cc.
References blender::animrig::action_add(), blender::Set< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::add(), blender::FCurve::array_index, blender::BEZT_IPO_BEZ, blender::BEZT_KEYTYPE_KEYFRAME, blender::BLI_assert(), blender::animrig::bone_is_selected(), construct_pose_rna_paths(), blender::Set< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::contains(), blender::animrig::Strip::data(), extract_pose(), blender::animrig::foreach_fcurve_in_action_slot(), blender::animrig::get_rna_values(), blender::HD_AUTO, blender::Vector< T, InlineBufferCapacity, Allocator >::index_range(), blender::animrig::Strip::Keyframe, blender::animrig::StripKeyframeData::keyframe_insert(), layer, blender::animrig::Action::layer_add(), blender::RNA_path_from_ID_to_property(), blender::RNA_path_resolve(), blender::RNA_pointer_create_discrete(), blender::RNA_property_is_idprop(), blender::animrig::Action::slot_add_for_id(), and blender::animrig::Slot::unassigned.
Referenced by create_pose_asset_local(), create_pose_asset_user_library(), and extract_pose().
|
static |
Definition at line 135 of file world_space_copy.cc.
References fcurves_to_matrix(), blender::MatBase< float, 4, 4 >::identity(), blender::IndexRange::IndexRange(), blender::FPoint::vec, blender::x, and y.
Referenced by fcurves_to_matrix(), and paste_world_space().
|
static |
Definition at line 545 of file world_space_copy.cc.
References blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::add(), generate_paste_mapping(), blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::keys(), blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::lookup_ptr(), blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::size(), and blender::MutableSpan< T >::size().
Referenced by generate_paste_mapping(), and paste_world_space().
Definition at line 579 of file anim_asset_ops.cc.
References blender::Vector< T, InlineBufferCapacity, Allocator >::append(), blender::animrig::bone_is_selected(), blender::bPose::chanbase, construct_pose_rna_paths(), blender::Object::data, generate_path_values(), blender::animrig::get_rna_values(), blender::Object::id, blender::Object::pose, blender::RNA_path_from_ID_to_property(), blender::RNA_path_resolve(), and blender::RNA_pointer_create_discrete().
Referenced by generate_path_values(), and update_pose_action_from_scene().
Get the selected asset from the given bContext. If the asset is an Action, returns a pointer to that action, else returns a nullptr.
Note that this may open another .blend file and import the Action, which means it should not be used in poll functions.
Definition at line 516 of file anim_asset_ops.cc.
References blender::bke::asset_edit_id_from_weak_reference(), C, blender::CTX_data_main(), blender::CTX_wm_asset(), get_action_of_selected_asset(), and blender::ID_AC.
Referenced by get_action_of_selected_asset(), pose_asset_delete_exec(), pose_asset_delete_invoke(), and pose_asset_modify_exec().
Definition at line 235 of file anim_asset_ops.cc.
References blender::Vector< T, InlineBufferCapacity, Allocator >::append(), C, blender::Vector< T, InlineBufferCapacity, Allocator >::contains(), blender::CTX_data_active_object(), blender::CTX_data_selected_objects(), get_selected_pose_objects(), and blender::Object::pose.
Referenced by create_pose_asset_local(), create_pose_asset_user_library(), and get_selected_pose_objects().
|
static |
Definition at line 147 of file world_space_copy.cc.
References blender::Set< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::add(), blender::Vector< T, InlineBufferCapacity, Allocator >::append(), and get_unique_ids().
Referenced by copy_world_space(), get_unique_ids(), get_unique_ids(), and paste_world_space().
|
static |
Definition at line 161 of file world_space_copy.cc.
References blender::Set< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::add(), blender::Vector< T, InlineBufferCapacity, Allocator >::append(), and get_unique_ids().
|
static |
Definition at line 933 of file world_space_copy.cc.
References blender::bPoseChannel::constraints, blender::Object::data, has_constraints(), blender::ed::AnimTransformable::OBJECT, and blender::ed::AnimTransformable::POSE_BONE.
Referenced by has_constraints(), and world_space_paste_exec().
|
static |
Returns true if the FCurve keeps the property it targets at a constant value throughout time.
Definition at line 309 of file world_space_copy.cc.
References blender::FCurve::bezt, blender::BEZT_IPO_BEZ, blender::FCurve::extend, fabsf, blender::FCURVE_EXTRAPOLATE_CONSTANT, blender::BezTriple::ipo, is_fcurve_flat(), blender::FCurve::modifiers, blender::FCurve::totvert, and blender::BezTriple::vec.
Referenced by clean_baked_fcurves(), and is_fcurve_flat().
|
static |
Check that the .asset.blend file that contains the Action is suitable for modification.
Editable: return true Not: report and return false.
Definition at line 539 of file anim_asset_ops.cc.
References blender::bke::asset_edit_id_is_editable(), blender::bke::asset_edit_id_is_writable(), blender::BKE_reportf(), blender::bAction::id, is_pose_asset_blend_editable(), and blender::RPT_ERROR.
Referenced by is_pose_asset_blend_editable(), pose_asset_delete_exec(), pose_asset_delete_invoke(), and pose_asset_modify_exec().
|
static |
Definition at line 119 of file world_space_copy.cc.
References blender::IndexRange::IndexRange(), matrix_to_fcurves(), blender::FPoint::vec, blender::x, and y.
Referenced by copy_world_space(), and matrix_to_fcurves().
|
static |
Definition at line 686 of file world_space_copy.cc.
References blender::AnimData::action, blender::Vector< T, InlineBufferCapacity, Allocator >::append(), blender::BKE_animdata_from_id(), blender::BKE_report(), blender::BKE_reportf(), blender::BLI_assert(), BLI_assert_msg, build_fcurves_for_paste(), blender::RenderData::cfra, blender::ed::animrig::TransformFCurves::channelbag, clean_baked_fcurves(), clipboard_name, CURRENT_FRAME, blender::DAG_EVAL_VIEWPORT, blender::DEG_evaluate_on_framechange(), blender::DEG_graph_build_from_ids(), blender::DEG_graph_free(), blender::DEG_graph_id_tag_update(), blender::DEG_graph_new(), depsgraph_sorted_transformables(), fcurves_to_matrix(), generate_paste_mapping(), blender::ed::AnimTransformable::get_rotation(), get_unique_ids(), blender::bAction::id, blender::ID_RECALC_ANIMATION, blender::Vector< T, InlineBufferCapacity, Allocator >::index_range(), blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::keys(), blender::ed::AnimTransformable::LOCATION, blender::ed::animrig::TransformFCurves::location, blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::lookup(), blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::lookup_or_add(), blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::lookup_ptr(), blender::Bounds< T >::max, blender::Bounds< T >::min, blender::ed::AnimTransformable::OBJECT, blender::ed::AnimTransformable::owner_id(), paste_world_space(), blender::Scene::r, recalculate_handles(), blender::Vector< T, InlineBufferCapacity, Allocator >::reserve(), blender::ed::AnimTransformable::ROTATION, blender::ed::animrig::TransformFCurves::rotation, blender::RPT_ERROR, blender::RPT_INFO, blender::ed::AnimTransformable::SCALE, blender::ed::animrig::TransformFCurves::scale, set_keys_to_transform(), blender::Array< T, InlineBufferCapacity, Allocator >::size(), blender::Bounds< T >::size(), blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::size(), blender::Vector< T, InlineBufferCapacity, Allocator >::size(), blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::values(), and blender::ed::AnimTransformable::world_to_local().
Referenced by paste_world_space(), and world_space_paste_exec().
|
static |
Definition at line 374 of file anim_asset_ops.cc.
References blender::ASSET_LIBRARY_CUSTOM, blender::ASSET_LIBRARY_LOCAL, blender::BKE_report(), BLI_assert_unreachable, C, create_pose_asset_local(), create_pose_asset_user_library(), blender::ed::asset::library_reference_from_enum_value(), MAX_NAME, blender::OPERATOR_CANCELLED, blender::OPERATOR_FINISHED, pose_asset_create_exec(), blender::wmOperator::ptr, blender::wmOperator::reports, blender::RNA_enum_get(), blender::RNA_property_is_set(), blender::RNA_property_string_get(), blender::RNA_struct_find_property(), blender::RPT_ERROR, and blender::AssetLibraryReference::type.
Referenced by pose_asset_create_exec(), and POSELIB_OT_create_pose_asset().
|
static |
Definition at line 407 of file anim_asset_ops.cc.
References blender::BKE_report(), C, blender::ed::asset::get_user_library_ref_for_save(), IFACE_, blender::ed::asset::library_reference_to_enum_value(), blender::OPERATOR_CANCELLED, pose_asset_create_invoke(), blender::wmOperator::ptr, blender::wmOperator::reports, blender::RNA_enum_set(), blender::RNA_struct_property_is_set_ex(), blender::RPT_WARNING, and blender::WM_operator_props_dialog_popup().
Referenced by pose_asset_create_invoke(), and POSELIB_OT_create_pose_asset().
|
static |
Definition at line 428 of file anim_asset_ops.cc.
References C, blender::ED_operator_posemode_context(), and pose_asset_create_poll().
Referenced by pose_asset_create_poll(), and POSELIB_OT_create_pose_asset().
|
static |
Definition at line 801 of file anim_asset_ops.cc.
References blender::bke::asset_edit_id_delete(), C, blender::ed::asset::clear_id(), blender::CTX_data_main(), blender::CTX_wm_asset(), blender::ED_undo_push_op(), get_action_of_selected_asset(), blender::bAction::id, ID_IS_LINKED, is_pose_asset_blend_editable(), NA_REMOVED, NC_ASSET, ND_ASSET_LIST, blender::OPERATOR_CANCELLED, blender::OPERATOR_FINISHED, pose_asset_delete_exec(), blender::ed::asset::refresh_asset_library(), blender::wmOperator::reports, and blender::WM_main_add_notifier().
Referenced by pose_asset_delete_exec(), and POSELIB_OT_asset_delete().
|
static |
Definition at line 832 of file anim_asset_ops.cc.
References blender::BKE_report(), C, get_action_of_selected_asset(), ID_IS_LINKED, IFACE_, is_pose_asset_blend_editable(), blender::OPERATOR_CANCELLED, pose_asset_delete_invoke(), blender::wmOperator::reports, blender::RPT_ERROR, blender::ui::Warning, and blender::WM_operator_confirm_ex().
Referenced by pose_asset_delete_invoke(), and POSELIB_OT_asset_delete().
|
static |
Definition at line 772 of file anim_asset_ops.cc.
References pose_asset_modify_description(), prop_asset_overwrite_modes, blender::RNA_enum_get(), and TIP_.
Referenced by pose_asset_modify_description(), and POSELIB_OT_asset_modify().
|
static |
Definition at line 723 of file anim_asset_ops.cc.
References blender::bke::asset_edit_id_save(), blender::BKE_report(), C, blender::CTX_data_active_object(), blender::CTX_data_main(), blender::CTX_wm_asset(), blender::ED_undo_push_op(), get_action_of_selected_asset(), blender::bAction::id, ID_IS_LINKED, is_pose_asset_blend_editable(), NA_EDITED, NC_ASSET, ND_ASSET_LIST, blender::OPERATOR_CANCELLED, blender::OPERATOR_FINISHED, blender::Object::pose, pose_asset_modify_exec(), blender::wmOperator::ptr, blender::ed::asset::refresh_asset_library_from_asset(), blender::wmOperator::reports, blender::RNA_enum_get(), blender::RPT_ERROR, update_pose_action_from_scene(), and blender::WM_main_add_notifier().
Referenced by pose_asset_modify_exec(), and POSELIB_OT_asset_modify().
|
static |
Definition at line 763 of file anim_asset_ops.cc.
References C, blender::CTX_wm_operator_poll_msg_set(), blender::ED_operator_posemode_context(), pose_asset_modify_poll(), and pose_asset_potentially_editable_poll().
Referenced by pose_asset_modify_poll(), and POSELIB_OT_asset_modify().
|
static |
Return true when the active asset is a local ID or in an .asset.blend file.
This does not load the actual asset data-block.
Definition at line 557 of file anim_asset_ops.cc.
References C, blender::CTX_wm_asset(), blender::CTX_wm_operator_poll_msg_set(), blender::asset_system::AssetRepresentation::get_id_type(), blender::ID_AC, blender::asset_system::AssetRepresentation::is_local_id(), blender::asset_system::AssetRepresentation::is_potentially_editable_asset_blend(), and pose_asset_potentially_editable_poll().
Referenced by pose_asset_modify_poll(), pose_asset_potentially_editable_poll(), and POSELIB_OT_asset_delete().
| void blender::ed::animrig::POSELIB_OT_asset_delete | ( | wmOperatorType * | ot | ) |
Definition at line 863 of file anim_asset_ops.cc.
References blender::wmOperatorType::description, blender::wmOperatorType::exec, blender::wmOperatorType::idname, blender::wmOperatorType::invoke, blender::wmOperatorType::name, blender::wmOperatorType::poll, pose_asset_delete_exec(), pose_asset_delete_invoke(), pose_asset_potentially_editable_poll(), and POSELIB_OT_asset_delete().
Referenced by blender::ED_operatortypes_anim(), and POSELIB_OT_asset_delete().
| void blender::ed::animrig::POSELIB_OT_asset_modify | ( | wmOperatorType * | ot | ) |
Definition at line 781 of file anim_asset_ops.cc.
References blender::wmOperatorType::description, blender::wmOperatorType::exec, blender::wmOperatorType::get_description, blender::wmOperatorType::idname, MODIFY_ADJUST, blender::wmOperatorType::name, blender::wmOperatorType::poll, pose_asset_modify_description(), pose_asset_modify_exec(), pose_asset_modify_poll(), POSELIB_OT_asset_modify(), prop_asset_overwrite_modes, blender::RNA_def_enum(), and blender::wmOperatorType::srna.
Referenced by blender::ED_operatortypes_anim(), and POSELIB_OT_asset_modify().
| void blender::ed::animrig::POSELIB_OT_create_pose_asset | ( | wmOperatorType * | ot | ) |
Definition at line 450 of file anim_asset_ops.cc.
References blender::ASSET_LIBRARY_LOCAL, blender::wmOperatorType::description, blender::wmOperatorType::exec, blender::wmOperatorType::flag, blender::wmOperatorType::idname, blender::wmOperatorType::invoke, MAX_NAME, blender::wmOperatorType::name, blender::OPTYPE_REGISTER, blender::OPTYPE_UNDO, blender::wmOperatorType::poll, pose_asset_create_exec(), pose_asset_create_invoke(), pose_asset_create_poll(), POSELIB_OT_create_pose_asset(), blender::wmOperatorType::prop, blender::PROP_ENUM, blender::PROP_NONE, blender::PROP_STRING_SEARCH_SUGGESTION, rna_asset_library_reference_itemf(), blender::RNA_def_enum_funcs(), blender::RNA_def_property(), blender::RNA_def_property_enum_default(), blender::RNA_def_property_string_search_func_runtime(), blender::RNA_def_property_ui_text(), blender::RNA_def_string(), blender::wmOperatorType::srna, and visit_library_prop_catalogs_catalog_for_search_fn().
Referenced by blender::ED_operatortypes_anim(), and POSELIB_OT_create_pose_asset().
| void blender::ed::animrig::POSELIB_OT_screenshot_preview | ( | wmOperatorType * | ot | ) |
References ANIM_OT_world_space_copy(), ANIM_OT_world_space_paste(), and POSELIB_OT_screenshot_preview().
Referenced by POSELIB_OT_screenshot_preview().
|
static |
Definition at line 665 of file world_space_copy.cc.
References blender::Main::actions, blender::BKE_report(), read_action_from_clipboard(), and blender::RPT_ERROR.
Referenced by read_action_from_clipboard(), and world_space_paste_exec().
|
static |
Definition at line 376 of file world_space_copy.cc.
References blender::BKE_fcurve_handles_recalc(), and recalculate_handles().
Referenced by paste_world_space(), and recalculate_handles().
|
inlinestatic |
Definition at line 619 of file anim_asset_ops.cc.
References blender::BEZT_IPO_BEZ, blender::BEZT_KEYTYPE_KEYFRAME, blender::BKE_fcurve_delete_keys_all(), blender::animrig::StripKeyframeData::channelbag_for_slot_ensure(), blender::animrig::Channelbag::fcurve_ensure(), blender::HD_AUTO, blender::animrig::insert_vert_fcurve(), blender::INSERTKEY_NOFLAGS, and replace_pose_key().
Referenced by replace_pose_key().
|
static |
Definition at line 61 of file anim_asset_ops.cc.
References blender::BLI_assert(), blender::ed::asset::library_reference_to_rna_enum_itemf(), and rna_asset_library_reference_itemf().
Referenced by POSELIB_OT_create_pose_asset(), and rna_asset_library_reference_itemf().
|
static |
Definition at line 385 of file world_space_copy.cc.
References blender::FCurve::bezt, blender::BKE_fcurve_keyframe_move_value_with_handles(), blender::BLI_assert(), blender::ed::Rotation::converted_to_mode(), blender::Array< T, InlineBufferCapacity, Allocator >::data(), blender::ed::animrig::PasteFCurve::fcurve, blender::ed::animrig::TransformFCurves::location, blender::mat4_decompose(), blender::ed::Rotation::mode, blender::ed::animrig::PasteFCurve::paste_start_index, blender::MatBase< T, NumCol, NumRow, Alignment >::ptr(), blender::Array< T, InlineBufferCapacity, Allocator >::reinitialize(), blender::ROT_MODE_QUAT, blender::ed::animrig::TransformFCurves::rotation, blender::ed::animrig::TransformFCurves::rotation_mode, blender::ed::animrig::TransformFCurves::scale, scale(), set_keys_to_transform(), and blender::ed::Rotation::values.
Referenced by paste_world_space(), and set_keys_to_transform().
|
static |
Definition at line 175 of file world_space_copy.cc.
References BLI_assert_unreachable, blender::DEG_OB_COMP_BONE, blender::DEG_OB_COMP_TRANSFORM, blender::ed::AnimTransformable::name(), blender::ed::AnimTransformable::OBJECT, blender::ed::AnimTransformable::owner_id(), blender::ed::AnimTransformable::POSE_BONE, transformable_to_deg_identifier(), and blender::ed::AnimTransformable::type().
Referenced by build_transformable_relations(), and transformable_to_deg_identifier().
|
static |
Definition at line 636 of file anim_asset_ops.cc.
References blender::BLI_assert(), BLI_assert_unreachable, blender::animrig::foreach_fcurve_in_action_slot(), generate_path_values(), blender::animrig::get_best_pose_slot_for_id(), blender::ActionSlot::handle, blender::Object::id, blender::animrig::Action::layers(), blender::bAction::slot_array_num, blender::animrig::Action::strip_keyframe_data(), and update_pose_action_from_scene().
Referenced by pose_asset_modify_exec(), and update_pose_action_from_scene().
|
static |
Definition at line 436 of file anim_asset_ops.cc.
References C, blender::CTX_data_main(), blender::ed::asset::library_reference_from_enum_value(), blender::RNA_enum_get(), blender::ed::asset::visit_library_catalogs_catalog_for_search(), and visit_library_prop_catalogs_catalog_for_search_fn().
Referenced by POSELIB_OT_create_pose_asset(), and visit_library_prop_catalogs_catalog_for_search_fn().
|
static |
Definition at line 868 of file world_space_copy.cc.
References blender::BKE_report(), blender::BKE_reportf(), blender::BKE_scene_get_playback_range(), C, copy_world_space(), blender::CTX_data_main(), blender::CTX_data_scene(), blender::CTX_data_view_layer(), CUSTOM, blender::ScenePlaybackRange::end_frame, blender::Vector< T, InlineBufferCapacity, Allocator >::is_empty(), blender::OPERATOR_CANCELLED, blender::OPERATOR_FINISHED, PLAYBACK_RANGE, blender::wmOperator::ptr, blender::wmOperator::reports, blender::RNA_enum_get(), blender::RNA_int_get(), blender::RPT_ERROR, blender::ed::selected_transformables_from_context(), blender::ScenePlaybackRange::start_frame, and world_space_copy_exec().
Referenced by ANIM_OT_world_space_copy(), and world_space_copy_exec().
|
static |
Definition at line 905 of file world_space_copy.cc.
References C, blender::ED_operator_objectmode(), blender::ED_operator_posemode(), and world_space_copy_poll().
Referenced by ANIM_OT_world_space_copy(), and world_space_copy_poll().
|
static |
Definition at line 956 of file world_space_copy.cc.
References blender::BKE_copybuffer_read(), blender::BKE_main_free(), blender::BKE_report(), blender::BKE_tempdir_base(), BLI_path_join, C, clipboard_name, blender::CTX_data_main(), blender::CTX_data_scene(), blender::CTX_data_view_layer(), blender::DEG_id_tag_update(), FILE_MAX, FILTER_ID_ALL, has_constraints(), blender::ID_RECALC_ANIMATION, blender::Vector< T, InlineBufferCapacity, Allocator >::is_empty(), NC_OBJECT, ND_POSE, blender::OPERATOR_CANCELLED, blender::OPERATOR_FINISHED, paste_world_space(), blender::wmOperator::ptr, read_action_from_clipboard(), blender::wmOperator::reports, blender::RNA_enum_get(), blender::RPT_ERROR, blender::RPT_WARNING, blender::ed::selected_transformables_from_context(), blender::WM_event_add_notifier(), and world_space_paste_exec().
Referenced by ANIM_OT_world_space_paste(), and world_space_paste_exec().
|
static |
Definition at line 1002 of file world_space_copy.cc.
References C, blender::ED_operator_objectmode(), blender::ED_operator_posemode(), and world_space_paste_poll().
Referenced by ANIM_OT_world_space_paste(), and world_space_paste_poll().
|
constexpr |
Definition at line 42 of file world_space_copy.cc.
Referenced by copy_world_space(), paste_world_space(), and world_space_paste_exec().
|
static |
Definition at line 482 of file anim_asset_ops.cc.
Referenced by pose_asset_modify_description(), and POSELIB_OT_asset_modify().
| const EnumPropertyItem blender::ed::animrig::rna_enum_animation_paste_offset_items[] |
Definition at line 1007 of file world_space_copy.cc.
Referenced by ANIM_OT_world_space_paste().
| const EnumPropertyItem blender::ed::animrig::rna_enum_copy_range_items[] |
Definition at line 854 of file world_space_copy.cc.
Referenced by ANIM_OT_world_space_copy().