|
Blender V4.5
|
#include <cstdio>#include <cstring>#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 wmOperatorStatus | 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 114 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 158 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 126 of file scene_edit.cc.
References BKE_id_delete(), C, ListBase::first, Scene::id, LISTBASE_FOREACH, ID::next, ID::prev, 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 blender::ed::vse::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 68 of file scene_edit.cc.
References Editing::act_strip, C, 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, blender::seq::relations_invalidate_cache_raw(), SCE_COPY_NEW, Strip::scene, scene_add(), and WM_event_add_notifier().
Referenced by scene_new_sequencer_exec(), and 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 199 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, reports, RPT_ERROR, STREQ, STRNCPY(), 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 49 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 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 384 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 245 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 318 of file scene_edit.cc.
References ARRAY_SIZE, C, CTX_data_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 299 of file scene_edit.cc.
References C, 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 C, CTX_data_scene(), blender::seq::select_active_get(), STRIP_TYPE_SCENE, and Strip::type.
Referenced by SCENE_OT_new_sequencer().
|
static |
Definition at line 408 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 272 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 356 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().
Definition at line 170 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 186 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 256 of file scene_edit.cc.
Referenced by scene_new_sequencer_enum_itemf(), SCENE_OT_new(), and SCENE_OT_new_sequencer().