Blender V4.3
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 97 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 231 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 246 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 237 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 98 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 100 of file BKE_mesh_types.hh.

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

◆ frozen

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

Definition at line 99 of file BKE_mesh_types.hh.

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


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