Blender  V2.93
Functions
scene_edit.c File Reference
#include <stdio.h>
#include <string.h>
#include "BLI_compiler_attrs.h"
#include "BLI_listbase.h"
#include "BLI_string.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 "RNA_access.h"
#include "RNA_define.h"
#include "WM_api.h"
#include "WM_types.h"

Go to the source code of this file.

Functions

SceneED_scene_add (Main *bmain, bContext *C, wmWindow *win, eSceneCopyMethod method)
 
bool ED_scene_delete (bContext *C, Main *bmain, Scene *scene)
 
void ED_scene_change_update (Main *bmain, Scene *scene, ViewLayer *layer)
 
static bool view_layer_remove_poll (const Scene *scene, const ViewLayer *layer)
 
static void view_layer_remove_unset_nodetrees (const Main *bmain, Scene *scene, ViewLayer *layer)
 
bool ED_scene_view_layer_delete (Main *bmain, Scene *scene, ViewLayer *layer, ReportList *reports)
 
static int scene_new_exec (bContext *C, wmOperator *op)
 
static void SCENE_OT_new (wmOperatorType *ot)
 
static bool scene_delete_poll (bContext *C)
 
static int scene_delete_exec (bContext *C, wmOperator *UNUSED(op))
 
static void SCENE_OT_delete (wmOperatorType *ot)
 
void ED_operatortypes_scene (void)
 

Function Documentation

◆ ED_operatortypes_scene()

void ED_operatortypes_scene ( void  )

Definition at line 280 of file scene_edit.c.

References SCENE_OT_delete(), SCENE_OT_new(), and WM_operatortype_append().

Referenced by ED_spacetypes_init().

◆ ED_scene_add()

Scene* ED_scene_add ( Main bmain,
bContext C,
wmWindow win,
eSceneCopyMethod  method 
)

◆ ED_scene_change_update()

void ED_scene_change_update ( Main bmain,
Scene scene,
ViewLayer layer 
)

◆ ED_scene_delete()

bool ED_scene_delete ( bContext C,
Main bmain,
Scene scene 
)
Note
Only call outside of area/region loops
Returns
true if successful

Definition at line 84 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(), and scene_fn().

◆ ED_scene_view_layer_delete()

bool ED_scene_view_layer_delete ( Main bmain,
Scene scene,
ViewLayer layer,
ReportList reports 
)

◆ scene_delete_exec()

static int scene_delete_exec ( bContext C,
wmOperator UNUSEDop 
)
static

◆ scene_delete_poll()

static bool scene_delete_poll ( bContext C)
static

Definition at line 241 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().

◆ scene_new_exec()

static int scene_new_exec ( bContext C,
wmOperator op 
)
static

◆ SCENE_OT_delete()

static void SCENE_OT_delete ( wmOperatorType ot)
static

◆ SCENE_OT_new()

static void SCENE_OT_new ( wmOperatorType ot)
static

◆ view_layer_remove_poll()

static bool view_layer_remove_poll ( const Scene scene,
const ViewLayer layer 
)
static

◆ view_layer_remove_unset_nodetrees()

static void view_layer_remove_unset_nodetrees ( const Main bmain,
Scene scene,
ViewLayer layer 
)
static