Blender V4.3
BlenderContext.cpp File Reference
#include <vector>
#include "BlenderContext.h"
#include "ExportSettings.h"
#include "BKE_layer.hh"
#include "BKE_scene.hh"
#include "BLI_listbase.h"

Go to the source code of this file.

Functions

bool bc_is_base_node (LinkNode *export_set, Object *ob, const Scene *scene, ViewLayer *view_layer)
 
Objectbc_get_highest_exported_ancestor_or_self (LinkNode *export_set, Object *ob, const Scene *scene, ViewLayer *view_layer)
 
void bc_get_children (std::vector< Object * > &child_set, Object *ob, const Scene *scene, ViewLayer *view_layer)
 
bool bc_is_in_Export_set (LinkNode *export_set, Object *ob, const Scene *scene, 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,
const Scene * scene,
ViewLayer * view_layer )

◆ bc_get_highest_exported_ancestor_or_self()

Object * bc_get_highest_exported_ancestor_or_self ( LinkNode * export_set,
Object * ob,
const Scene * scene,
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 & ID_TAG_DOIT

Definition at line 25 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,
const Scene * scene,
ViewLayer * view_layer )

Definition at line 19 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,
const Scene * scene,
ViewLayer * view_layer )

◆ bc_is_marked()

int bc_is_marked ( Object * ob)

Definition at line 86 of file BlenderContext.cpp.

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

◆ bc_remove_mark()

void bc_remove_mark ( Object * ob)

Definition at line 91 of file BlenderContext.cpp.

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

Referenced by MeshImporter::optimize_material_assignements().

◆ bc_set_mark()

void bc_set_mark ( Object * ob)

Definition at line 96 of file BlenderContext.cpp.

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

Referenced by MeshImporter::create_mesh_object().