|
Blender V4.3
|
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_ |
Definition at line 68 of file grease_pencil_undo.cc.
|
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().
|
protected |
Definition at line 74 of file grease_pencil_undo.cc.
Referenced by blender::ed::greasepencil::undo::StepDrawingGeometry::decode(), blender::ed::greasepencil::undo::StepDrawingReference::decode(), blender::ed::greasepencil::undo::StepDrawingGeometry::encode(), and blender::ed::greasepencil::undo::StepDrawingReference::encode().
|
protected |
Definition at line 71 of file grease_pencil_undo.cc.
Referenced by blender::ed::greasepencil::undo::StepDrawingGeometry::decode(), blender::ed::greasepencil::undo::StepDrawingReference::decode(), decode_valid_drawingtype_at_index_ensure(), blender::ed::greasepencil::undo::StepDrawingGeometry::encode(), and blender::ed::greasepencil::undo::StepDrawingReference::encode().