Blender
V3.3
|
#include <stdio.h>
#include <string.h>
#include "BLI_compiler_attrs.h"
#include "BLI_listbase.h"
#include "BLI_string.h"
#include "DNA_sequence_types.h"
#include "BKE_context.h"
#include "BKE_global.h"
#include "BKE_layer.h"
#include "BKE_lib_id.h"
#include "BKE_main.h"
#include "BKE_node.h"
#include "BKE_report.h"
#include "BKE_scene.h"
#include "DEG_depsgraph.h"
#include "DEG_depsgraph_build.h"
#include "BLT_translation.h"
#include "ED_object.h"
#include "ED_render.h"
#include "ED_scene.h"
#include "ED_screen.h"
#include "ED_util.h"
#include "SEQ_relations.h"
#include "SEQ_select.h"
#include "RNA_access.h"
#include "RNA_define.h"
#include "RNA_enum_types.h"
#include "WM_api.h"
#include "WM_types.h"
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) |
Definition at line 427 of file scene_edit.c.
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 116 of file scene_edit.c.
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 160 of file scene_edit.c.
References BKE_scene_ensure_depsgraph(), BKE_scene_set_background(), DEG_graph_relations_update(), DEG_tag_on_visible_update(), depsgraph, ED_render_engine_changed(), ED_update_for_newframe(), and scene.
Referenced by WM_window_set_active_scene().
Definition at line 128 of file scene_edit.c.
References BKE_id_delete(), C, ListBase::first, Scene::id, LISTBASE_FOREACH, ID::next, NULL, ID::prev, scene, wmWindowManager::windows, Main::wm, WM_JOB_TYPE_ANY, WM_jobs_kill_type(), and WM_window_set_active_scene().
Referenced by scene_delete_exec(), scene_fn(), and sequencer_delete_strip_data().
Scene* ED_scene_sequencer_add | ( | Main * | bmain, |
bContext * | C, | ||
eSceneCopyMethod | method, | ||
const bool | assign_strip | ||
) |
Add a new scene in the sequence editor.
Definition at line 70 of file scene_edit.c.
References Editing::act_seq, 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, NULL, 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 199 of file scene_edit.c.
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, LISTBASE_FOREACH, NA_REMOVED, ViewLayer::name, ID::name, NC_SCENE, ND_LAYER, RPT_ERROR, scene, 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 50 of file scene_edit.c.
References BKE_scene_add(), BKE_scene_duplicate(), DATA_, ED_editors_flush_edits(), NULL, SCE_COPY_FULL, and SCE_COPY_NEW.
Referenced by ED_scene_add(), and ED_scene_sequencer_add().
|
static |
Definition at line 389 of file scene_edit.c.
References C, CTX_data_main(), CTX_data_scene(), ED_scene_delete(), G, G_DEBUG, NA_REMOVED, NC_SCENE, OPERATOR_CANCELLED, OPERATOR_FINISHED, scene, and WM_event_add_notifier().
Referenced by SCENE_OT_delete().
Definition at line 382 of file scene_edit.c.
References BKE_scene_can_be_removed(), C, CTX_data_main(), CTX_data_scene(), and scene.
Referenced by SCENE_OT_delete().
|
static |
Definition at line 245 of file scene_edit.c.
References C, CTX_data_main(), CTX_wm_window(), ED_scene_add(), OPERATOR_FINISHED, wmOperator::ptr, RNA_enum_get(), and type.
Referenced by SCENE_OT_new().
|
static |
Definition at line 316 of file scene_edit.c.
References ARRAY_SIZE, C, CTX_data_scene(), NULL, 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, scene, 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 297 of file scene_edit.c.
References C, CTX_data_main(), ED_scene_sequencer_add(), NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, RNA_enum_get(), and type.
Referenced by SCENE_OT_new_sequencer().
Definition at line 309 of file scene_edit.c.
References C, CTX_data_scene(), scene, SEQ_select_active_get(), SEQ_TYPE_SCENE, and Sequence::type.
Referenced by SCENE_OT_new_sequencer().
|
static |
Definition at line 406 of file scene_edit.c.
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 272 of file scene_edit.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::prop, RNA_def_enum(), SCE_COPY_NEW, scene_new_exec(), scene_new_items, wmOperatorType::srna, and WM_menu_invoke().
Referenced by ED_operatortypes_scene().
|
static |
Definition at line 354 of file scene_edit.c.
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 172 of file scene_edit.c.
References BLI_findindex(), ListBase::first, ListBase::last, scene, and Scene::view_layers.
Referenced by ED_scene_view_layer_delete().
|
static |
Definition at line 188 of file scene_edit.c.
References BKE_nodetree_remove_layer_n(), BLI_findindex(), ListBase::first, scene, Main::scenes, and Scene::view_layers.
Referenced by ED_scene_view_layer_delete().
|
static |
Definition at line 256 of file scene_edit.c.
Referenced by scene_new_sequencer_enum_itemf(), SCENE_OT_new(), and SCENE_OT_new_sequencer().