Blender V4.3
blender::ed::greasepencil::undo::StepDrawingGeometryBase Class Reference

Inherited by blender::ed::greasepencil::undo::StepDrawingGeometry, and blender::ed::greasepencil::undo::StepDrawingReference.

Protected Member Functions

void decode_valid_drawingtype_at_index_ensure (MutableSpan< GreasePencilDrawingBase * > drawings, const GreasePencilDrawingType drawing_type) const
 

Protected Attributes

int index_
 
uint32_t flag_
 

Detailed Description

Definition at line 68 of file grease_pencil_undo.cc.

Member Function Documentation

◆ decode_valid_drawingtype_at_index_ensure()

void blender::ed::greasepencil::undo::StepDrawingGeometryBase::decode_valid_drawingtype_at_index_ensure ( MutableSpan< GreasePencilDrawingBase * > drawings,
const GreasePencilDrawingType drawing_type ) const
inlineprotected

Ensures that the drawing from the given array at the current index exists, and has the proposer type.

Non-existing drawings can happen after extending the drawings array.

Mismatch in drawing types can happen when some drawings have been deleted between the undo step storage, and the current state of the GreasePencil data.

Definition at line 86 of file grease_pencil_undo.cc.

References GP_DRAWING, GP_DRAWING_REFERENCE, index_, GreasePencilDrawingBase::type, and wrap().

Referenced by blender::ed::greasepencil::undo::StepDrawingGeometry::decode(), and blender::ed::greasepencil::undo::StepDrawingReference::decode().

Member Data Documentation

◆ flag_

◆ index_


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