Blender  V3.3
Functions
BlenderContext.cpp File Reference
#include <vector>
#include "BlenderContext.h"
#include "ExportSettings.h"
#include "BKE_scene.h"

Go to the source code of this file.

Functions

bool bc_is_base_node (LinkNode *export_set, Object *ob, ViewLayer *view_layer)
 
Objectbc_get_highest_exported_ancestor_or_self (LinkNode *export_set, Object *ob, ViewLayer *view_layer)
 
void bc_get_children (std::vector< Object * > &child_set, Object *ob, ViewLayer *view_layer)
 
bool bc_is_in_Export_set (LinkNode *export_set, Object *ob, ViewLayer *view_layer)
 
int bc_is_marked (Object *ob)
 
void bc_remove_mark (Object *ob)
 
void bc_set_mark (Object *ob)
 

Function Documentation

◆ bc_get_children()

void bc_get_children ( std::vector< Object * > &  child_set,
Object ob,
ViewLayer view_layer 
)

◆ bc_get_highest_exported_ancestor_or_self()

Object* bc_get_highest_exported_ancestor_or_self ( LinkNode export_set,
Object ob,
ViewLayer view_layer 
)

Returns the highest selected ancestor returns NULL if no ancestor is selected IMPORTANT: This function expects that all exported objects have set: ob->id.tag & LIB_TAG_DOIT

Definition at line 20 of file BlenderContext.cpp.

References bc_is_in_Export_set(), and Object::parent.

Referenced by bc_is_base_node().

◆ bc_is_base_node()

bool bc_is_base_node ( LinkNode export_set,
Object ob,
ViewLayer view_layer 
)

Definition at line 14 of file BlenderContext.cpp.

References bc_get_highest_exported_ancestor_or_self().

◆ bc_is_in_Export_set()

bool bc_is_in_Export_set ( LinkNode export_set,
Object ob,
ViewLayer view_layer 
)

Definition at line 54 of file BlenderContext.cpp.

References bc_get_children(), and BLI_linklist_index().

Referenced by bc_get_highest_exported_ancestor_or_self().

◆ bc_is_marked()

int bc_is_marked ( Object ob)

Definition at line 74 of file BlenderContext.cpp.

References Object::id, LIB_TAG_DOIT, and ID::tag.

◆ bc_remove_mark()

void bc_remove_mark ( Object ob)

Definition at line 79 of file BlenderContext.cpp.

References Object::id, LIB_TAG_DOIT, and ID::tag.

Referenced by MeshImporter::optimize_material_assignements().

◆ bc_set_mark()

void bc_set_mark ( Object ob)

Definition at line 84 of file BlenderContext.cpp.

References Object::id, LIB_TAG_DOIT, and ID::tag.

Referenced by MeshImporter::create_mesh_object().