|
Blender V5.0
|
#include <cstdio>#include <cstring>#include "BLI_listbase.h"#include "BLI_string_utf8.h"#include "DNA_sequence_types.h"#include "BKE_context.hh"#include "BKE_global.hh"#include "BKE_layer.hh"#include "BKE_lib_id.hh"#include "BKE_main.hh"#include "BKE_node.hh"#include "BKE_report.hh"#include "BKE_scene.hh"#include "DEG_depsgraph.hh"#include "DEG_depsgraph_build.hh"#include "BLT_translation.hh"#include "ED_render.hh"#include "ED_scene.hh"#include "ED_screen.hh"#include "ED_util.hh"#include "SEQ_relations.hh"#include "SEQ_select.hh"#include "SEQ_sequencer.hh"#include "RNA_access.hh"#include "RNA_define.hh"#include "WM_api.hh"#include "WM_types.hh"Go to the source code of this file.
Scene New Operator | |
| static EnumPropertyItem | scene_new_items [] |
| static wmOperatorStatus | scene_new_exec (bContext *C, wmOperator *op) |
| static void | SCENE_OT_new (wmOperatorType *ot) |
|
static |
Definition at line 489 of file scene_edit.cc.
References C, CTX_data_main(), CTX_wm_window(), ID_SCE, NC_SCENE, ND_SCENEBROWSE, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, WM_event_add_notifier(), WM_operator_properties_id_lookup_from_name_or_session_uid(), and WM_window_set_active_scene().
Referenced by SCENE_OT_drop_scene_asset().
| void ED_operatortypes_scene | ( | ) |
Definition at line 528 of file scene_edit.cc.
References SCENE_OT_delete(), SCENE_OT_drop_scene_asset(), SCENE_OT_new(), SCENE_OT_new_sequencer(), SCENE_OT_new_sequencer_scene(), and WM_operatortype_append().
Referenced by ED_spacetypes_init().
| Scene * ED_scene_add | ( | Main * | bmain, |
| bContext * | C, | ||
| wmWindow * | win, | ||
| eSceneCopyMethod | method ) |
Definition at line 81 of file scene_edit.cc.
References C, NC_SCENE, ND_SCENEBROWSE, scene_add(), WM_event_add_notifier(), WM_window_get_active_scene(), and WM_window_set_active_scene().
Referenced by scene_new_exec().
Depsgraph updates after scene becomes active in a window.
Definition at line 141 of file scene_edit.cc.
References BKE_scene_ensure_depsgraph(), BKE_scene_set_background(), DEG_graph_relations_update(), DEG_tag_on_visible_update(), depsgraph, ED_render_engine_changed(), and ED_update_for_newframe().
Referenced by WM_window_set_active_scene().
Definition at line 93 of file scene_edit.cc.
References BKE_id_delete(), C, CTX_wm_manager(), ED_screen_animation_play(), ED_screen_animation_playing(), ListBase::first, Scene::id, LISTBASE_FOREACH, NC_WINDOW, ID::next, ID::prev, ScreenAnimData::scene, wmWindowManager::windows, Main::wm, WM_event_add_notifier(), WM_jobs_kill_all_from_owner(), WM_window_set_active_scene(), and Main::workspaces.
Referenced by scene_delete_exec(), blender::ed::outliner::scene_fn(), and blender::ed::vse::sequencer_delete_strip_data().
| Scene * ED_scene_sequencer_add | ( | Main * | bmain, |
| bContext * | C, | ||
| eSceneCopyMethod | method ) |
Add a new scene from the sequence editor.
Definition at line 73 of file scene_edit.cc.
References C, CTX_data_scene(), and scene_add().
Referenced by blender::ed::vse::sequencer_add_scene_strip_new_exec().
| bool ED_scene_view_layer_delete | ( | Main * | bmain, |
| Scene * | scene, | ||
| ViewLayer * | layer, | ||
| ReportList * | reports ) |
Definition at line 182 of file scene_edit.cc.
References BKE_reportf(), BKE_scene_free_view_layer_depsgraph(), BKE_view_layer_default_view(), BKE_view_layer_free(), BLI_assert, BLI_listbase_is_empty(), BLI_remlink(), DEG_id_tag_update(), DEG_relations_tag_update(), ListBase::first, Scene::id, ID_RECALC_BASE_FLAGS, LISTBASE_FOREACH, NA_REMOVED, ID::name, ViewLayer::name, NC_SCENE, ND_LAYER, RPT_ERROR, STREQ, STRNCPY_UTF8, view_layer_remove_poll(), view_layer_remove_unset_nodetrees(), Scene::view_layers, wmWindowManager::windows, Main::wm, and WM_main_add_notifier().
|
static |
Definition at line 379 of file scene_edit.cc.
References BKE_reportf(), C, CTX_data_main(), CTX_data_sequencer_scene(), CTX_wm_window(), CTX_wm_workspace(), blender::seq::editing_ensure(), Scene::id, ID::name, NC_WINDOW, OPERATOR_FINISHED, wmOperator::ptr, wmOperator::reports, RNA_enum_get(), RPT_WARNING, scene_add(), WorkSpace::sequencer_scene, TIP_, WM_event_add_notifier(), and WM_window_set_active_scene().
Referenced by new_sequencer_scene_invoke(), and SCENE_OT_new_sequencer_scene().
|
static |
Definition at line 406 of file scene_edit.cc.
References C, CTX_data_sequencer_scene(), new_sequencer_scene_exec(), wmOperator::ptr, RNA_enum_set(), SCE_COPY_NEW, and WM_menu_invoke().
Referenced by SCENE_OT_new_sequencer_scene().
|
static |
Definition at line 50 of file scene_edit.cc.
References BKE_scene_add(), BKE_scene_duplicate(), DATA_, ED_editors_flush_edits(), LIB_ID_DUPLICATE_IS_ROOT_ID, SCE_COPY_FULL, SCE_COPY_NEW, U, and USER_DUP_OBJECT.
Referenced by ED_scene_add(), ED_scene_sequencer_add(), new_sequencer_scene_exec(), and scene_new_sequencer_exec().
|
static |
Definition at line 451 of file scene_edit.cc.
References C, CTX_data_main(), CTX_data_scene(), ED_scene_delete(), G, G_DEBUG, NA_REMOVED, NC_SCENE, OPERATOR_CANCELLED, OPERATOR_FINISHED, printf, and WM_event_add_notifier().
Referenced by SCENE_OT_delete().
|
static |
Definition at line 444 of file scene_edit.cc.
References BKE_scene_can_be_removed(), C, CTX_data_main(), and CTX_data_scene().
Referenced by SCENE_OT_delete().
|
static |
Definition at line 228 of file scene_edit.cc.
References C, CTX_data_main(), CTX_wm_window(), ED_scene_add(), OPERATOR_FINISHED, wmOperator::ptr, and RNA_enum_get().
Referenced by SCENE_OT_new().
|
static |
Definition at line 313 of file scene_edit.cc.
References ARRAY_SIZE, C, CTX_data_sequencer_scene(), i, RNA_enum_from_value(), RNA_enum_item_add(), RNA_enum_item_end(), SCE_COPY_EMPTY, SCE_COPY_FULL, SCE_COPY_LINK_COLLECTION, SCE_COPY_NEW, Strip::scene, scene_new_items, blender::seq::select_active_get(), STRIP_TYPE_SCENE, and Strip::type.
Referenced by SCENE_OT_new_sequencer().
|
static |
Definition at line 282 of file scene_edit.cc.
References BLI_assert, C, CTX_data_main(), CTX_data_sequencer_scene(), DEG_id_tag_update(), DEG_relations_tag_update(), Scene::id, ID_RECALC_AUDIO, ID_RECALC_SEQUENCER_STRIPS, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, blender::seq::relations_invalidate_cache_raw(), RNA_enum_get(), Strip::scene, scene_add(), and blender::seq::select_active_get().
Referenced by SCENE_OT_new_sequencer().
|
static |
Definition at line 306 of file scene_edit.cc.
References C, CTX_data_sequencer_scene(), blender::seq::select_active_get(), STRIP_TYPE_SCENE, and Strip::type.
Referenced by SCENE_OT_new_sequencer().
|
static |
Definition at line 468 of file scene_edit.cc.
References OPTYPE_REGISTER, OPTYPE_UNDO, ot, scene_delete_exec(), and scene_delete_poll().
Referenced by ED_operatortypes_scene().
|
static |
Definition at line 506 of file scene_edit.cc.
References drop_scene_asset_exec(), OPTYPE_INTERNAL, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and WM_operator_properties_id_lookup().
Referenced by ED_operatortypes_scene().
|
static |
Definition at line 255 of file scene_edit.cc.
References BLT_I18NCONTEXT_ID_SCENE, OPTYPE_REGISTER, OPTYPE_UNDO, ot, RNA_def_enum(), RNA_def_property_translation_context(), SCE_COPY_NEW, scene_new_exec(), scene_new_items, WM_menu_invoke(), and WM_operator_winactive().
Referenced by ED_operatortypes_scene().
|
static |
Definition at line 351 of file scene_edit.cc.
References OPTYPE_REGISTER, OPTYPE_UNDO, ot, PROP_ENUM_NO_TRANSLATE, RNA_def_enum(), RNA_def_enum_funcs(), RNA_def_property_flag(), SCE_COPY_NEW, scene_new_items, scene_new_sequencer_enum_itemf(), scene_new_sequencer_exec(), scene_new_sequencer_poll(), and WM_menu_invoke().
Referenced by ED_operatortypes_scene().
|
static |
Definition at line 418 of file scene_edit.cc.
References BLT_I18NCONTEXT_ID_SCENE, new_sequencer_scene_exec(), new_sequencer_scene_invoke(), OPTYPE_REGISTER, OPTYPE_UNDO, ot, PROP_SKIP_SAVE, RNA_def_enum(), RNA_def_property_flag(), RNA_def_property_translation_context(), SCE_COPY_NEW, and scene_new_items.
Referenced by ED_operatortypes_scene().
Definition at line 153 of file scene_edit.cc.
References BLI_findindex(), ListBase::first, ListBase::last, and Scene::view_layers.
Referenced by ED_scene_view_layer_delete().
|
static |
Definition at line 169 of file scene_edit.cc.
References BLI_findindex(), ListBase::first, blender::bke::node_tree_remove_layer_n(), Main::scenes, and Scene::view_layers.
Referenced by ED_scene_view_layer_delete().
|
static |
Definition at line 239 of file scene_edit.cc.
Referenced by scene_new_sequencer_enum_itemf(), SCENE_OT_new(), SCENE_OT_new_sequencer(), and SCENE_OT_new_sequencer_scene().