Blender V5.3
blender::ed::outliner::SceneReplaceData Struct Reference

Public Member Functions

Scene * active_scene_get (bContext *C)
bool can_replace () const
bool is_valid () const

Public Attributes

Scene * scene_to_delete = nullptr
Scene * scene_to_activate = nullptr

Detailed Description

Helper struct to handle Scene deletion.

In case the scene to be deleted is active in the context/WM/etc., some valid replacement scene must be found, and some additional extra processing must be done before the actual deletion of the scene.

Definition at line 506 of file outliner_edit.cc.

Member Function Documentation

◆ active_scene_get()

Scene * blender::ed::outliner::SceneReplaceData::active_scene_get ( bContext * C)
inline

Return the scene currently expected to become the active scene.

Definition at line 511 of file outliner_edit.cc.

References C, blender::CTX_data_scene(), and scene_to_activate.

Referenced by blender::ed::outliner::id_delete_tag(), and blender::ed::outliner::outliner_orphans_purge_exec().

◆ can_replace()

bool blender::ed::outliner::SceneReplaceData::can_replace ( ) const
inline

Return true if the current data allows the active scene replacement.

Definition at line 517 of file outliner_edit.cc.

References scene_to_activate, and scene_to_delete.

Referenced by blender::ed::outliner::id_delete_tag_fn(), is_valid(), blender::ed::outliner::outliner_id_delete_invoke(), and blender::ed::outliner::outliner_orphans_purge_exec().

◆ is_valid()

bool blender::ed::outliner::SceneReplaceData::is_valid ( ) const
inline

Member Data Documentation

◆ scene_to_activate

◆ scene_to_delete


The documentation for this struct was generated from the following file: