Blender V4.3
GPencilUpdateCache Struct Reference

#include <BKE_gpencil_update_cache_legacy.h>

Public Attributes

struct DLRBT_Treechildren
 
int flag
 
int index
 
void * data
 

Detailed Description

Cache for what needs to be updated after bGPdata was modified.

Every node holds information about one element that was changed:

  • The index of where that element is in the linked-list.
  • The pointer to the original element in bGPdata.

Additionally, nodes also hold other nodes that are one "level" below them. E.g. a node that represents a change on a bGPDframe could contain a set of nodes that represent a change on bGPDstrokes. These nodes are stored in a red-black tree so that they are sorted by their index to make sure they can be processed in the correct order.

Definition at line 47 of file BKE_gpencil_update_cache_legacy.h.

Member Data Documentation

◆ children

struct DLRBT_Tree* GPencilUpdateCache::children

◆ data

void* GPencilUpdateCache::data

Definition at line 55 of file BKE_gpencil_update_cache_legacy.h.

Referenced by update_cache_alloc().

◆ flag

int GPencilUpdateCache::flag

Definition at line 51 of file BKE_gpencil_update_cache_legacy.h.

Referenced by update_cache_alloc().

◆ index

int GPencilUpdateCache::index

Definition at line 53 of file BKE_gpencil_update_cache_legacy.h.

Referenced by update_cache_alloc().


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