Blender V5.0
blender::bke::TrianglesCache Struct Reference

#include <BKE_mesh_types.hh>

Public Member Functions

void freeze ()
void unfreeze ()
void tag_dirty ()

Public Attributes

SharedCache< Array< int3 > > data
bool frozen = false
bool dirty_while_frozen = false

Detailed Description

Definition at line 119 of file BKE_mesh_types.hh.

Member Function Documentation

◆ freeze()

void blender::bke::TrianglesCache::freeze ( )

Delay applying dirty tags from tag_dirty() until unfreeze is called.

Definition at line 232 of file mesh_runtime.cc.

References dirty_while_frozen, freeze(), and frozen.

Referenced by freeze().

◆ tag_dirty()

void blender::bke::TrianglesCache::tag_dirty ( )

Call instead of data.tag_dirty().

Definition at line 247 of file mesh_runtime.cc.

References data, dirty_while_frozen, frozen, and tag_dirty().

Referenced by tag_dirty().

◆ unfreeze()

void blender::bke::TrianglesCache::unfreeze ( )

Apply dirty tags from after freeze, and make future dirty tags apply immediately.

Definition at line 238 of file mesh_runtime.cc.

References data, dirty_while_frozen, frozen, and unfreeze().

Referenced by unfreeze().

Member Data Documentation

◆ data

SharedCache<Array<int3> > blender::bke::TrianglesCache::data

Definition at line 120 of file BKE_mesh_types.hh.

Referenced by tag_dirty(), and unfreeze().

◆ dirty_while_frozen

bool blender::bke::TrianglesCache::dirty_while_frozen = false

Definition at line 122 of file BKE_mesh_types.hh.

Referenced by freeze(), tag_dirty(), and unfreeze().

◆ frozen

bool blender::bke::TrianglesCache::frozen = false

Definition at line 121 of file BKE_mesh_types.hh.

Referenced by freeze(), tag_dirty(), and unfreeze().


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