Blender V5.0
BKE_duplilist.hh File Reference
#include "BLI_vector_list.hh"
#include "BKE_geometry_set.hh"
#include "BKE_instances.hh"

Go to the source code of this file.

Classes

struct  DupliObject

Typedefs

using DupliList = blender::VectorList<DupliObject>

Functions

void object_duplilist (Depsgraph *depsgraph, Scene *sce, Object *ob, blender::Set< const Object * > *include_objects, DupliList &r_duplilist)
void object_duplilist_preview (Depsgraph *depsgraph, Scene *scene, Object *ob, const ViewerPath *viewer_path, DupliList &r_duplilist)
blender::bke::Instances object_duplilist_legacy_instances (Depsgraph &depsgraph, Scene &scene, Object &ob)
bool BKE_object_dupli_find_rgba_attribute (const Object *ob, const DupliObject *dupli, const Object *dupli_parent, const char *name, float r_value[4])
bool BKE_view_layer_find_rgba_attribute (const Scene *scene, const ViewLayer *layer, const char *name, float r_value[4])

Variables

constexpr int MAX_DUPLI_RECUR = 8

Typedef Documentation

◆ DupliList

Definition at line 69 of file BKE_duplilist.hh.

Function Documentation

◆ BKE_object_dupli_find_rgba_attribute()

bool BKE_object_dupli_find_rgba_attribute ( const Object * ob,
const DupliObject * dupli,
const Object * dupli_parent,
const char * name,
float r_value[4] )

Look up the RGBA value of a uniform shader attribute.

Returns
true if the attribute was found; if not, r_value is also set to zero.

Definition at line 2075 of file object_dupli.cc.

References copy_v4_fl(), Object::data, find_geonode_attribute_rgba(), find_property_rgba(), Object::id, ParticleSettings::id, name, ParticleSystem::part, and DupliObject::particle_system.

Referenced by blender::draw::ObjectRef::find_rgba_attribute(), and lookup_instance_property().

◆ BKE_view_layer_find_rgba_attribute()

bool BKE_view_layer_find_rgba_attribute ( const Scene * scene,
const ViewLayer * layer,
const char * name,
float r_value[4] )

Look up the RGBA value of a view layer/scene/world shader attribute.

Returns
true if the attribute was found; if not, r_value is also set to zero.

Definition at line 2116 of file object_dupli.cc.

References copy_v4_fl(), find_property_rgba(), Scene::id, World::id, name, RNA_pointer_create_discrete(), and Scene::world.

Referenced by LayerAttribute::sync().

◆ object_duplilist()

◆ object_duplilist_legacy_instances()

blender::bke::Instances object_duplilist_legacy_instances ( Depsgraph & depsgraph,
Scene & scene,
Object & ob )

◆ object_duplilist_preview()

Variable Documentation

◆ MAX_DUPLI_RECUR