|
Blender V4.3
|
#include <cstdio>#include <cstring>#include "BLI_compiler_attrs.h"#include "BLI_listbase.h"#include "BLI_string.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 "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 int | scene_new_exec (bContext *C, wmOperator *op) |
| static void | SCENE_OT_new (wmOperatorType *ot) |
| void ED_operatortypes_scene | ( | ) |
Definition at line 429 of file scene_edit.cc.
References SCENE_OT_delete(), SCENE_OT_new(), SCENE_OT_new_sequencer(), and WM_operatortype_append().
Referenced by ED_spacetypes_init().
| Scene * ED_scene_add | ( | Main * | bmain, |
| bContext * | C, | ||
| wmWindow * | win, | ||
| eSceneCopyMethod | method ) |
Definition at line 115 of file scene_edit.cc.
References 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 159 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 127 of file scene_edit.cc.
References BKE_id_delete(), ListBase::first, LISTBASE_FOREACH, wmWindowManager::windows, Main::wm, WM_jobs_kill_all_from_owner(), and WM_window_set_active_scene().
Referenced by scene_delete_exec(), blender::ed::outliner::scene_fn(), and sequencer_delete_strip_data().
| Scene * ED_scene_sequencer_add | ( | Main * | bmain, |
| bContext * | C, | ||
| eSceneCopyMethod | method, | ||
| bool | assign_strip ) |
Add a new scene in the sequence editor.
Special mode for adding a scene assigned to sequencer strip.
Definition at line 69 of file scene_edit.cc.
References Editing::act_seq, CTX_data_scene(), DEG_id_tag_update(), DEG_relations_tag_update(), Scene::ed, Scene::id, ID_RECALC_AUDIO, ID_RECALC_SEQUENCER_STRIPS, NC_SCENE, ND_SCENEBROWSE, ND_SEQUENCER, SCE_COPY_NEW, Sequence::scene, scene_add(), SEQ_relations_invalidate_cache_raw(), and WM_event_add_notifier().
Referenced by scene_new_sequencer_exec(), and sequencer_add_scene_strip_new_exec().
| bool ED_scene_view_layer_delete | ( | Main * | bmain, |
| Scene * | scene, | ||
| ViewLayer * | layer, | ||
| ReportList * | reports ) |
Definition at line 200 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, ID_RECALC_BASE_FLAGS, LISTBASE_FOREACH, NA_REMOVED, ViewLayer::name, NC_SCENE, ND_LAYER, RPT_ERROR, STREQ, STRNCPY, view_layer_remove_poll(), view_layer_remove_unset_nodetrees(), wmWindowManager::windows, Main::wm, and WM_main_add_notifier().
|
static |
Definition at line 50 of file scene_edit.cc.
References BKE_scene_add(), BKE_scene_duplicate(), DATA_, ED_editors_flush_edits(), SCE_COPY_FULL, and SCE_COPY_NEW.
Referenced by ED_scene_add(), and ED_scene_sequencer_add().
|
static |
Definition at line 391 of file scene_edit.cc.
References 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 384 of file scene_edit.cc.
References BKE_scene_can_be_removed(), CTX_data_main(), and CTX_data_scene().
Referenced by SCENE_OT_delete().
|
static |
Definition at line 246 of file scene_edit.cc.
References 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 318 of file scene_edit.cc.
References ARRAY_SIZE, CTX_data_scene(), 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, Sequence::scene, scene_new_items, SEQ_select_active_get(), SEQ_TYPE_SCENE, and Sequence::type.
Referenced by SCENE_OT_new_sequencer().
|
static |
Definition at line 299 of file scene_edit.cc.
References CTX_data_main(), ED_scene_sequencer_add(), OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, and RNA_enum_get().
Referenced by SCENE_OT_new_sequencer().
|
static |
Definition at line 311 of file scene_edit.cc.
References CTX_data_scene(), SEQ_select_active_get(), SEQ_TYPE_SCENE, and Sequence::type.
Referenced by SCENE_OT_new_sequencer().
|
static |
Definition at line 408 of file scene_edit.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, scene_delete_exec(), and scene_delete_poll().
Referenced by ED_operatortypes_scene().
|
static |
Definition at line 273 of file scene_edit.cc.
References BLT_I18NCONTEXT_ID_SCENE, wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::prop, RNA_def_enum(), RNA_def_property_translation_context(), SCE_COPY_NEW, scene_new_exec(), scene_new_items, wmOperatorType::srna, and WM_menu_invoke().
Referenced by ED_operatortypes_scene().
|
static |
Definition at line 356 of file scene_edit.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, wmOperatorType::prop, 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(), wmOperatorType::srna, and WM_menu_invoke().
Referenced by ED_operatortypes_scene().
Definition at line 171 of file scene_edit.cc.
References BLI_findindex().
Referenced by ED_scene_view_layer_delete().
|
static |
Definition at line 187 of file scene_edit.cc.
References BLI_findindex(), ListBase::first, blender::bke::node_tree_remove_layer_n(), and Main::scenes.
Referenced by ED_scene_view_layer_delete().
|
static |
Definition at line 257 of file scene_edit.cc.
Referenced by scene_new_sequencer_enum_itemf(), SCENE_OT_new(), and SCENE_OT_new_sequencer().