Blender
V3.3
|
#include "DNA_anim_types.h"
#include "DNA_gpencil_types.h"
#include "DNA_mask_types.h"
#include "MEM_guardedalloc.h"
#include "BLI_listbase.h"
#include "BLI_math.h"
#include "BLI_rect.h"
#include "BKE_context.h"
#include "BKE_gpencil.h"
#include "BKE_key.h"
#include "BKE_mask.h"
#include "BKE_nla.h"
#include "ED_anim_api.h"
#include "ED_keyframes_edit.h"
#include "ED_markers.h"
#include "WM_api.h"
#include "WM_types.h"
#include "transform.h"
#include "transform_snap.h"
#include "transform_convert.h"
Go to the source code of this file.
Classes | |
struct | tGPFtransdata |
Typedefs | |
typedef struct tGPFtransdata | tGPFtransdata |
Variables | |
TransConvertTypeInfo | TransConvertType_Action |
typedef struct tGPFtransdata tGPFtransdata |
|
static |
Definition at line 176 of file transform_convert_action.c.
References FCurve::bezt, ELEM, BezTriple::f2, FrameOnMouseSide(), NULL, SELECT, TimeToTransData(), and BezTriple::vec.
Referenced by createTransActionData().
Definition at line 50 of file transform_convert_action.c.
References FCurve::bezt, count, ELEM, BezTriple::f2, FrameOnMouseSide(), NULL, SELECT, and BezTriple::vec.
Referenced by createTransActionData().
|
static |
Definition at line 79 of file transform_convert_action.c.
References count, ListBase::first, bGPDframe::flag, bGPDframe::framenum, FrameOnMouseSide(), bGPDlayer::frames, GP_FRAME_SELECT, bGPDframe::next, and NULL.
Referenced by createTransActionData().
|
static |
Definition at line 105 of file transform_convert_action.c.
References count, ListBase::first, MaskLayerShape::flag, MaskLayerShape::frame, FrameOnMouseSide(), MASK_SHAPE_SELECT, MaskLayerShape::next, NULL, and MaskLayer::splines_shapes.
Referenced by createTransActionData().
Definition at line 292 of file transform_convert_action.c.
References ActionFCurveToTransData(), ANIM_animdata_filter(), ANIM_animdata_freelist(), ANIM_animdata_get_context(), ANIM_nla_mapping_get(), ANIMCONT_DOPESHEET, ANIMCONT_GPENCIL, ANIMCONT_MASK, ANIMCONT_TIMELINE, ANIMFILTER_DATA_VISIBLE, ANIMFILTER_FOREDIT, ANIMTYPE_FCURVE, ANIMTYPE_GPLAYER, ANIMTYPE_MASKLAYER, ANIMTYPE_NLACURVE, BKE_nla_tweakedit_remap(), BLI_assert, BLI_rctf_cent_y(), BLI_rctf_size_x(), BLI_rctf_size_y(), BLI_rcti_size_x(), BLI_rcti_size_y(), C, RenderData::cfra, count, count_fcurve_keys(), count_gplayer_frames(), count_masklayer_frames(), TransDataContainer::custom, bAnimContext::data, bAnimListElem::data, TransCustomData::data, TransDataContainer::data, TransDataContainer::data_2d, TransDataContainer::data_gpf_len, TransDataContainer::data_len, bAnimContext::datatype, ELEM, filter(), ListBase::first, float(), GPLayerToTransData(), bAnimListElem::key_data, mask(), MaskLayerToTransData(), MEM_callocN, bAnimListElem::next, NLATIME_CONVERT_UNMAP, NULL, Scene::r, scene, t, T_PROP_EDIT, bAnimListElem::tag, TFM_TIME_EXTEND, TRANS_DATA_CONTAINER_FIRST_SINGLE, transform_convert_frame_side_dir_get(), bAnimListElem::type, TransCustomDataContainer::type, and TransCustomData::use_free.
Definition at line 556 of file transform_convert_action.c.
References TransDataContainer::custom, TransCustomData::data, TransDataContainer::data_gpf_len, round_fl_to_int(), tGPFtransdata::sdata, t, TRANS_DATA_CONTAINER_FIRST_SINGLE, TransCustomDataContainer::type, and tGPFtransdata::val.
|
static |
This function advances the address to which td points to, so it must return the new address so that the next time new transform data is added, it doesn't overwrite the existing ones: e.g. td += GPLayerToTransData(td, ...);
side | is needed for the extend mode. 'B' = both sides, 'R'/'L' mean only data on the named side are used. |
Definition at line 220 of file transform_convert_action.c.
References count, ListBase::first, bGPDframe::flag, float(), bGPDframe::framenum, FrameOnMouseSide(), bGPDlayer::frames, GP_FRAME_SELECT, TransData::ival, bGPDframe::next, tGPFtransdata::sdata, tGPFtransdata::val, and TransData::val.
Referenced by createTransActionData().
Definition at line 642 of file transform_convert_action.c.
References Freestyle::a, usdtokens::b(), MaskLayerShape::flag, MaskLayerShape::frame, and MASK_SHAPE_SELECT.
Referenced by posttrans_mask_clean().
|
static |
Definition at line 256 of file transform_convert_action.c.
References count, ListBase::first, MaskLayerShape::flag, float(), MaskLayerShape::frame, FrameOnMouseSide(), TransData::ival, MASK_SHAPE_SELECT, MaskLayerShape::next, tGPFtransdata::sdata, MaskLayer::splines_shapes, tGPFtransdata::val, and TransData::val.
Referenced by createTransActionData().
|
static |
Definition at line 732 of file transform_convert_action.c.
References ANIM_animdata_filter(), ANIM_animdata_freelist(), ANIM_nla_mapping_apply_fcurve(), ANIM_nla_mapping_get(), ANIMCONT_ACTION, ANIMFILTER_DATA_VISIBLE, ANIMFILTER_FCURVESONLY, ANIMFILTER_FOREDIT, filter(), ListBase::first, bAnimListElem::key_data, bAnimListElem::next, NULL, posttrans_fcurve_clean(), and SELECT.
Referenced by special_aftertrans_update__actedit().
Definition at line 697 of file transform_convert_action.c.
References BKE_gpencil_layer_frame_delete(), BKE_gpencil_layer_frames_sort(), BLI_assert, DEG_id_tag_update(), ListBase::first, bGPDframe::framenum, bGPDlayer::frames, bGPdata::id, ID_RECALC_GEOMETRY, ID_RECALC_TRANSFORM, bGPdata::layers, NA_EDITED, NC_GPENCIL, bGPDframe::next, bGPDlayer::next, and WM_main_add_notifier().
Referenced by special_aftertrans_update__actedit().
Definition at line 661 of file transform_convert_action.c.
References BKE_mask_layer_shape_unlink(), BLI_assert, BLI_listbase_sort_r(), ListBase::first, MaskLayerShape::frame, mask(), masklay_shape_cmp_frame(), NA_EDITED, NC_MASK, MaskLayerShape::next, MaskLayer::next, MaskLayer::splines_shapes, and WM_main_add_notifier().
Referenced by special_aftertrans_update__actedit().
Definition at line 568 of file transform_convert_action.c.
Definition at line 762 of file transform_convert_action.c.
References ALE_FCURVE, ALE_GPFRAME, ALE_MASKLAY, ANIM_animdata_filter(), ANIM_animdata_freelist(), ANIM_animdata_get_context(), ANIM_editkeyframes_refresh(), ANIM_nla_mapping_apply_fcurve(), ANIM_nla_mapping_get(), ANIMCONT_ACTION, ANIMCONT_DOPESHEET, ANIMCONT_GPENCIL, ANIMCONT_MASK, ANIMCONT_SHAPEKEY, ANIMCONT_TIMELINE, ANIMFILTER_DATA_VISIBLE, ANIMFILTER_FOREDIT, BKE_key_from_object(), BLI_assert_msg, C, bAnimListElem::datatype, DEG_id_tag_update(), ED_context_get_markers(), ED_markers_post_apply_transform(), ELEM, filter(), ListBase::first, SpaceAction::flag, bAnimListElem::id, Object::id, ID_RECALC_ANIMATION, ID_RECALC_GEOMETRY, ID_RECALC_TRANSFORM, if(), bAnimListElem::key_data, LIB_TAG_DOIT, LISTBASE_FOREACH, bAnimListElem::next, NULL, Object::pose, posttrans_action_clean(), posttrans_fcurve_clean(), posttrans_gpd_clean(), posttrans_mask_clean(), SACTION_MARKERS_MOVE, SACTION_MOVING, SACTION_NOTRANSKEYCULL, SELECT, t, ID::tag, TFM_TIME_DUPLICATE, TFM_TIME_SCALE, TFM_TIME_TRANSLATE, and TRANS_CANCEL.
|
static |
Definition at line 132 of file transform_convert_action.c.
References copy_v2_v2(), copy_v3_v3(), BezTriple::f2, TransData2D::h1, TransData2D::h2, TransData2D::ih1, TransData2D::ih2, TransData::ival, TransData2D::loc, TransData2D::loc2d, SELECT, TD_MOVEHANDLE1, TD_MOVEHANDLE2, TD_SELECTED, time, TransData::val, and BezTriple::vec.
Referenced by ActionFCurveToTransData().
TransConvertTypeInfo TransConvertType_Action |
Definition at line 930 of file transform_convert_action.c.
Referenced by convert_type_get(), and init_proportional_edit().