|
Blender V4.3
|
#include <cmath>#include <cstdio>#include <cstdlib>#include <cstring>#include "DNA_anim_types.h"#include "DNA_object_types.h"#include "DNA_scene_types.h"#include "BLI_utildefines.h"#include "BKE_anim_data.hh"#include "BKE_context.hh"#include "BKE_global.hh"#include "BKE_layer.hh"#include "BKE_nla.hh"#include "BKE_report.hh"#include "ANIM_action.hh"#include "ED_anim_api.hh"#include "ED_keyframes_edit.hh"#include "ED_object.hh"#include "ED_screen.hh"#include "RNA_access.hh"#include "RNA_define.hh"#include "WM_api.hh"#include "WM_types.hh"#include "DEG_depsgraph.hh"#include "DEG_depsgraph_build.hh"#include "UI_view2d.hh"#include "nla_intern.hh"Go to the source code of this file.
|
static |
Definition at line 60 of file nla_tracks.cc.
References ACHANNEL_SETFLAG_CLEAR, bAnimListElem::adt, Object::adt, Scene::adt, ADT_UI_ACTIVE, ADT_UI_SELECTED, ANIM_anim_channels_select_set(), ANIM_animdata_filter(), ANIM_animdata_freelist(), ANIM_animdata_update(), ANIM_set_active_channel(), ANIM_UPDATE_DEPS, ANIMFILTER_DATA_VISIBLE, ANIMFILTER_FCURVESONLY, ANIMFILTER_LIST_CHANNELS, ANIMFILTER_LIST_VISIBLE, ANIMTYPE_ACTION_SLOT, ANIMTYPE_DSARM, ANIMTYPE_DSCACHEFILE, ANIMTYPE_DSCAM, ANIMTYPE_DSCUR, ANIMTYPE_DSGPENCIL, ANIMTYPE_DSHAIR, ANIMTYPE_DSLAM, ANIMTYPE_DSLAT, ANIMTYPE_DSLINESTYLE, ANIMTYPE_DSMAT, ANIMTYPE_DSMBALL, ANIMTYPE_DSMESH, ANIMTYPE_DSNTREE, ANIMTYPE_DSPART, ANIMTYPE_DSPOINTCLOUD, ANIMTYPE_DSSKEY, ANIMTYPE_DSSPK, ANIMTYPE_DSTEX, ANIMTYPE_DSVOLUME, ANIMTYPE_DSWOR, ANIMTYPE_FILLACT_LAYERED, ANIMTYPE_FILLACTD, ANIMTYPE_NLAACTION, ANIMTYPE_NLATRACK, ANIMTYPE_OBJECT, ANIMTYPE_PALETTE, ANIMTYPE_SCENE, b, blender::ed::object::BA_DESELECT, blender::ed::object::BA_INVERT, blender::ed::object::BA_SELECT, blender::ed::object::base_activate_with_mode_exit_if_needed(), blender::ed::object::base_select(), BASE_SELECTABLE, BKE_animdata_from_id(), BKE_view_layer_object_bases_get(), BKE_view_layer_synced_ensure(), BLI_findlink(), bAnimContext::data, bAnimListElem::data, bAnimContext::datatype, AnimData::flag, Base::flag, NlaTrack::flag, Scene::flag, G, G_DEBUG, bAnimListElem::id, LISTBASE_FOREACH, NA_SELECTED, ND_ANIMCHAN, ND_NLA_ACTCHANGE, nlaedit_disable_tweakmode(), nlaedit_is_tweakmode_on(), NLATRACK_SELECTED, Base::object, printf, SCE_DS_SELECTED, bAnimContext::scene, SELECT_INVERT, bAnimListElem::type, bAnimListElem::update, and bAnimContext::view_layer.
Referenced by nlatracks_mouseclick_invoke().
|
static |
Definition at line 497 of file nla_tracks.cc.
References AnimData::action, PointerRNA::data, ED_animedit_unlink_action(), nla_panel_context(), OPERATOR_CANCELLED, OPERATOR_FINISHED, PointerRNA::owner_id, wmOperator::ptr, wmOperator::reports, and RNA_boolean_get().
Referenced by nla_action_unlink_invoke(), and NLA_OT_action_unlink().
|
static |
Definition at line 521 of file nla_tracks.cc.
References KM_SHIFT, wmEvent::modifier, nla_action_unlink_exec(), wmOperator::ptr, and RNA_boolean_set().
Referenced by NLA_OT_action_unlink().
|
static |
Definition at line 486 of file nla_tracks.cc.
References PointerRNA::data, ED_operator_nla_active(), and nla_panel_context().
Referenced by NLA_OT_action_unlink().
| void NLA_OT_action_pushdown | ( | wmOperatorType * | ot | ) |
Definition at line 457 of file nla_tracks.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, nlaop_poll_tweakmode_off(), nlatracks_pushdown_exec(), OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, wmOperatorType::prop, PROP_HIDDEN, PROP_SKIP_SAVE, RNA_def_int(), RNA_def_property_flag(), and wmOperatorType::srna.
Referenced by nla_operatortypes().
| void NLA_OT_action_unlink | ( | wmOperatorType * | ot | ) |
Definition at line 529 of file nla_tracks.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, nla_action_unlink_exec(), nla_action_unlink_invoke(), nla_action_unlink_poll(), ot, wmOperatorType::poll, PROP_SKIP_SAVE, RNA_def_boolean(), RNA_def_property_flag(), and wmOperatorType::srna.
Referenced by nla_operatortypes().
| void NLA_OT_channels_click | ( | wmOperatorType * | ot | ) |
Definition at line 336 of file nla_tracks.cc.
References wmOperatorType::description, ED_operator_nla_active(), wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, nlatracks_mouseclick_invoke(), OPTYPE_UNDO, ot, wmOperatorType::poll, PROP_SKIP_SAVE, RNA_def_boolean(), RNA_def_property_flag(), and wmOperatorType::srna.
Referenced by nla_operatortypes().
| void NLA_OT_selected_objects_add | ( | wmOperatorType * | ot | ) |
Definition at line 810 of file nla_tracks.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, nlaedit_objects_add_exec(), nlaop_poll_tweakmode_off(), OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by nla_operatortypes().
| void NLA_OT_tracks_add | ( | wmOperatorType * | ot | ) |
Definition at line 677 of file nla_tracks.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, nlaedit_add_tracks_exec(), nlaop_poll_tweakmode_off(), OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, RNA_def_boolean(), and wmOperatorType::srna.
Referenced by nla_operatortypes().
| void NLA_OT_tracks_delete | ( | wmOperatorType * | ot | ) |
Definition at line 755 of file nla_tracks.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, nlaedit_delete_tracks_exec(), nlaop_poll_tweakmode_off(), OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by nla_operatortypes().
| bool nlaedit_add_tracks_empty | ( | bAnimContext * | ac | ) |
helper - add NLA Tracks to empty (and selected) AnimData blocks.
Definition at line 604 of file nla_tracks.cc.
References ADT_UI_SELECTED, ANIM_animdata_filter(), ANIM_animdata_freelist(), ANIM_animdata_update(), ANIM_UPDATE_DEPS, ANIMFILTER_ANIMDATA, ANIMFILTER_DATA_VISIBLE, ANIMFILTER_FCURVESONLY, ANIMFILTER_LIST_VISIBLE, ANIMFILTER_NODUPLIS, ANIMFILTER_SEL, BKE_nlatrack_new_tail(), BKE_nlatrack_set_active(), BLI_assert, BLI_listbase_is_empty(), bAnimContext::data, bAnimContext::datatype, AnimData::flag, ID_IS_OVERRIDE_LIBRARY, LISTBASE_FOREACH, and AnimData::nla_tracks.
Referenced by nlaedit_add_actionclip_exec(), and nlaedit_add_tracks_exec().
|
static |
Definition at line 643 of file nla_tracks.cc.
References ANIM_animdata_get_context(), BKE_report(), CTX_data_main(), DEG_relations_tag_update(), NA_ADDED, NC_ANIMATION, ND_NLA, nlaedit_add_tracks_empty(), nlaedit_add_tracks_existing(), OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, wmOperator::reports, RNA_boolean_get(), RPT_WARNING, and WM_event_add_notifier().
Referenced by NLA_OT_tracks_add().
| bool nlaedit_add_tracks_existing | ( | bAnimContext * | ac, |
| bool | above_sel ) |
Helper - add NLA Tracks alongside existing ones.
Definition at line 555 of file nla_tracks.cc.
References ANIM_animdata_filter(), ANIM_animdata_freelist(), ANIM_animdata_update(), ANIM_UPDATE_DEPS, ANIMFILTER_DATA_VISIBLE, ANIMFILTER_FCURVESONLY, ANIMFILTER_LIST_VISIBLE, ANIMFILTER_NODUPLIS, ANIMFILTER_SEL, ANIMTYPE_NLATRACK, BKE_nlatrack_new_after(), BKE_nlatrack_new_tail(), BKE_nlatrack_set_active(), bAnimContext::data, bAnimContext::datatype, ID_IS_OVERRIDE_LIBRARY, LISTBASE_FOREACH, and AnimData::nla_tracks.
Referenced by nlaedit_add_tracks_exec().
|
static |
Definition at line 702 of file nla_tracks.cc.
References ANIM_animdata_filter(), ANIM_animdata_freelist(), ANIM_animdata_get_context(), ANIM_animdata_update(), ANIM_UPDATE_DEPS, ANIMFILTER_DATA_VISIBLE, ANIMFILTER_FCURVESONLY, ANIMFILTER_LIST_VISIBLE, ANIMFILTER_NODUPLIS, ANIMFILTER_SEL, ANIMTYPE_NLATRACK, BKE_nlatrack_is_nonlocal_in_liboverride(), BKE_nlatrack_remove_and_free(), bAnimContext::bmain, bAnimContext::data, bAnimContext::datatype, DEG_relations_tag_update(), AnimData::flag, NlaTrack::flag, LISTBASE_FOREACH, NA_REMOVED, NC_ANIMATION, ND_NLA, AnimData::nla_tracks, NLATRACK_SOLO, OPERATOR_CANCELLED, OPERATOR_FINISHED, and WM_event_add_notifier().
Referenced by NLA_OT_tracks_delete().
|
static |
Definition at line 781 of file nla_tracks.cc.
References SpaceNla::ads, ANIM_animdata_get_context(), BKE_animdata_ensure_id(), CTX_DATA_BEGIN, CTX_DATA_END, bDopeSheet::filterflag, NA_EDITED, NC_ANIMATION, ND_NLA, OPERATOR_CANCELLED, OPERATOR_FINISHED, bAnimContext::sl, and WM_event_add_notifier().
Referenced by NLA_OT_selected_objects_add().
|
static |
Definition at line 288 of file nla_tracks.cc.
References ANIM_animdata_get_context(), mouse_nla_tracks(), wmEvent::mval, NC_ANIMATION, NLATRACK_FIRST_TOP, NLATRACK_NAMEWIDTH, NLATRACK_STEP, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, bAnimContext::region, RNA_boolean_get(), SELECT_INVERT, SELECT_REPLACE, bAnimContext::sl, UI_view2d_listview_view_to_cell(), UI_view2d_region_to_view(), WM_event_add_notifier(), x, and y.
Referenced by NLA_OT_channels_click().
|
static |
Definition at line 362 of file nla_tracks.cc.
References AnimData::action, bAnimListElem::adt, ANIM_animdata_filter(), ANIM_animdata_freelist(), ANIM_animdata_get_context(), ANIMFILTER_DATA_VISIBLE, ANIMFILTER_FCURVESONLY, ANIMFILTER_LIST_CHANNELS, ANIMFILTER_LIST_VISIBLE, ANIMTYPE_NLAACTION, BKE_nla_action_pushdown(), BKE_report(), BKE_reportf(), BLI_findlink(), CTX_data_main(), bAnimContext::data, PointerRNA::data, bAnimContext::datatype, DEG_id_tag_update_ex(), bAction::id, bAnimListElem::id, ID_IS_OVERRIDE_LIBRARY, ID_RECALC_ANIMATION, NC_ANIMATION, ND_NLA_ACTCHANGE, nla_panel_context(), nlaedit_is_tweakmode_on(), OPERATOR_CANCELLED, OPERATOR_FINISHED, PointerRNA::owner_id, wmOperator::ptr, wmOperator::reports, RNA_int_get(), RPT_ERROR, RPT_WARNING, bAnimListElem::type, and WM_event_add_notifier().
Referenced by NLA_OT_action_pushdown().