Blender  V3.3
Public Member Functions | Public Attributes | List of all members
blender::deg::DriverDescriptor Class Reference

#include <deg_builder_relations_drivers.h>

Public Member Functions

 DriverDescriptor (PointerRNA *id_ptr, FCurve *fcu)
 
bool driver_relations_needed () const
 
bool is_array () const
 
bool is_same_array_as (const DriverDescriptor &other) const
 
OperationKey depsgraph_key () const
 

Public Attributes

StringRef rna_prefix
 
StringRef rna_suffix
 

Detailed Description

Definition at line 21 of file deg_builder_relations_drivers.h.

Constructor & Destructor Documentation

◆ DriverDescriptor()

blender::deg::DriverDescriptor::DriverDescriptor ( PointerRNA id_ptr,
FCurve fcu 
)

Definition at line 24 of file deg_builder_relations_drivers.cc.

Member Function Documentation

◆ depsgraph_key()

OperationKey blender::deg::DriverDescriptor::depsgraph_key ( ) const

◆ driver_relations_needed()

bool blender::deg::DriverDescriptor::driver_relations_needed ( ) const

◆ is_array()

bool blender::deg::DriverDescriptor::is_array ( ) const

Definition at line 65 of file deg_builder_relations_drivers.cc.

◆ is_same_array_as()

bool blender::deg::DriverDescriptor::is_same_array_as ( const DriverDescriptor other) const

Assumes that 'other' comes from the same RNA group, that is, has the same RNA path prefix.

Definition at line 70 of file deg_builder_relations_drivers.cc.

References rna_suffix.

Referenced by blender::deg::DepsgraphRelationBuilder::build_driver_relations().

Member Data Documentation

◆ rna_prefix

StringRef blender::deg::DriverDescriptor::rna_prefix

Drivers are grouped by their RNA prefix. The prefix is the part of the RNA path up to the last dot, the suffix is the remainder of the RNA path:

fcu->rna_path rna_prefix rna_suffix
------------------------------- ---------------------- ----------
'color' '' 'color'
'rigidbody_world.time_scale' 'rigidbody_world' 'time_scale'
'pose.bones["master"].location' 'pose.bones["master"]' 'location'

Definition at line 35 of file deg_builder_relations_drivers.h.

Referenced by blender::deg::DepsgraphRelationBuilder::build_driver_relations().

◆ rna_suffix

StringRef blender::deg::DriverDescriptor::rna_suffix

Definition at line 36 of file deg_builder_relations_drivers.h.

Referenced by is_same_array_as().


The documentation for this class was generated from the following files: