|
Blender V4.3
|
#include <iostream>#include <optional>#include "BKE_action.hh"#include "BKE_anim_data.hh"#include "BKE_animsys.h"#include "BKE_bake_data_block_id.hh"#include "BKE_curves.hh"#include "BKE_customdata.hh"#include "BKE_deform.hh"#include "BKE_geometry_set.hh"#include "BKE_grease_pencil.h"#include "BKE_grease_pencil.hh"#include "BKE_idtype.hh"#include "BKE_lib_id.hh"#include "BKE_lib_query.hh"#include "BKE_main.hh"#include "BKE_material.h"#include "BKE_modifier.hh"#include "BKE_object.hh"#include "BKE_object_types.hh"#include "BLI_bounds.hh"#include "BLI_enumerable_thread_specific.hh"#include "BLI_map.hh"#include "BLI_math_euler_types.hh"#include "BLI_math_geom.h"#include "BLI_math_matrix.h"#include "BLI_math_matrix.hh"#include "BLI_math_matrix_types.hh"#include "BLI_math_vector_types.hh"#include "BLI_memarena.h"#include "BLI_memory_utils.hh"#include "BLI_polyfill_2d.h"#include "BLI_span.hh"#include "BLI_stack.hh"#include "BLI_string.h"#include "BLI_string_ref.hh"#include "BLI_string_utils.hh"#include "BLI_utildefines.h"#include "BLI_vector_set.hh"#include "BLI_virtual_array.hh"#include "BLO_read_write.hh"#include "BLT_translation.hh"#include "DNA_ID.h"#include "DNA_ID_enums.h"#include "DNA_brush_types.h"#include "DNA_defaults.h"#include "DNA_gpencil_modifier_types.h"#include "DNA_grease_pencil_types.h"#include "DNA_material_types.h"#include "DNA_modifier_types.h"#include "DEG_depsgraph.hh"#include "DEG_depsgraph_query.hh"#include "MEM_guardedalloc.h"Go to the source code of this file.
Namespaces | |
| namespace | blender |
| namespace | blender::bke |
| namespace | blender::bke::greasepencil |
Variables | |
| static const char * | ATTR_POSITION = "position" |
| IDTypeInfo | IDType_ID_GP |
| static const std::string | blender::bke::greasepencil::ATTR_RADIUS = "radius" |
| static const std::string | blender::bke::greasepencil::ATTR_OPACITY = "opacity" |
| static const std::string | blender::bke::greasepencil::ATTR_VERTEX_COLOR = "vertex_color" |
| static const std::string | blender::bke::greasepencil::ATTR_FILL_COLOR = "fill_color" |
Draw Cache | |
| void(* | BKE_grease_pencil_batch_cache_dirty_tag_cb )(GreasePencil *grease_pencil, int mode) = nullptr |
| void(* | BKE_grease_pencil_batch_cache_free_cb )(GreasePencil *grease_pencil) = nullptr |
| void | BKE_grease_pencil_batch_cache_dirty_tag (GreasePencil *grease_pencil, int mode) |
| void | BKE_grease_pencil_batch_cache_free (GreasePencil *grease_pencil) |
| void * BKE_grease_pencil_add | ( | Main * | bmain, |
| const char * | name ) |
Definition at line 1901 of file grease_pencil.cc.
References BKE_id_new(), and ID_GP.
Referenced by BKE_object_obdata_add_from_type(), and blender::ed::greasepencil::duplicate_grease_pencil_object().
| void BKE_grease_pencil_batch_cache_dirty_tag | ( | GreasePencil * | grease_pencil, |
| int | mode ) |
Definition at line 2592 of file grease_pencil.cc.
References BKE_grease_pencil_batch_cache_dirty_tag_cb, and GreasePencil::runtime.
Referenced by BKE_object_batch_cache_dirty_tag().
| void BKE_grease_pencil_batch_cache_free | ( | GreasePencil * | grease_pencil | ) |
Definition at line 2599 of file grease_pencil.cc.
References BKE_grease_pencil_batch_cache_free_cb, and GreasePencil::runtime.
Referenced by grease_pencil_free_data().
Definition at line 2415 of file grease_pencil.cc.
References Brush::gpencil_settings, and BrushGpencilSettings::material.
Referenced by BKE_grease_pencil_object_material_ensure_from_brush(), and BKE_grease_pencil_object_material_from_brush_get().
| GreasePencil * BKE_grease_pencil_copy_for_eval | ( | const GreasePencil * | grease_pencil_src | ) |
Definition at line 1915 of file grease_pencil.cc.
References BKE_id_copy_ex(), GreasePencil::id, LIB_ID_COPY_LOCALIZE, and GreasePencil::runtime.
Referenced by blender::bke::GreasePencilComponent::copy(), blender::bke::GreasePencilComponent::ensure_owns_direct_data(), blender::geometry::execute_realize_grease_pencil_tasks(), blender::bke::GreasePencilComponent::get_for_write(), and blender::ed::object::object_convert_exec().
| void BKE_grease_pencil_copy_layer_group_parameters | ( | const blender::bke::greasepencil::LayerGroup & | src, |
| blender::bke::greasepencil::LayerGroup & | dst ) |
Definition at line 1961 of file grease_pencil.cc.
References blender::bke::greasepencil::LayerGroup::as_node(), GreasePencilLayerTreeNode::color, GreasePencilLayerTreeGroup::color_tag, copy_v3_v3_uchar(), and GreasePencilLayerTreeNode::flag.
Referenced by blender::ed::greasepencil::copy_layer_group_recursive(), and blender::ed::greasepencil::copy_layer_groups_without_layers().
| void BKE_grease_pencil_copy_layer_parameters | ( | const blender::bke::greasepencil::Layer & | src, |
| blender::bke::greasepencil::Layer & | dst ) |
Definition at line 1934 of file grease_pencil.cc.
References GreasePencilLayer::active_mask_index, blender::bke::greasepencil::Layer::as_node(), GreasePencilLayer::blend_mode, BLI_addtail(), GreasePencilLayerTreeNode::color, copy_m4_m4(), copy_v3_v3(), copy_v3_v3_uchar(), GreasePencilLayerTreeNode::flag, LISTBASE_FOREACH, GreasePencilLayer::masks, GreasePencilLayer::opacity, GreasePencilLayer::parent, GreasePencilLayer::parentinv, GreasePencilLayer::parsubstr, GreasePencilLayer::rotation, GreasePencilLayer::scale, blender::bke::greasepencil::Layer::set_parent_bone_name(), blender::bke::greasepencil::Layer::set_view_layer_name(), GreasePencilLayer::translation, and GreasePencilLayer::viewlayername.
Referenced by blender::ed::greasepencil::copy_layer(), blender::nodes::node_geo_duplicate_elements_cc::duplicate_layers(), blender::geometry::execute_realize_grease_pencil_task(), and blender::ed::greasepencil::merge_layers().
| void BKE_grease_pencil_copy_parameters | ( | const GreasePencil & | src, |
| GreasePencil & | dst ) |
Copy everything except the layer tree and the drawings.
Definition at line 1923 of file grease_pencil.cc.
References GreasePencil::attributes_active_index, BLI_duplicatelist(), GreasePencil::flag, GreasePencil::material_array, GreasePencil::material_array_num, MEM_dupallocN, GreasePencil::onion_skinning_settings, GreasePencil::vertex_group_active_index, and GreasePencil::vertex_group_names.
Referenced by blender::nodes::node_geo_duplicate_elements_cc::duplicate_layers(), blender::geometry::execute_realize_grease_pencil_tasks(), blender::ed::greasepencil::grease_pencil_merge_layer_exec(), blender::geometry::separate_grease_pencil_layer_selection(), blender::ed::greasepencil::tests::TEST(), blender::ed::greasepencil::tests::TEST(), and blender::ed::greasepencil::tests::TEST().
Definition at line 2165 of file grease_pencil.cc.
References BKE_grease_pencil_new_nomain(), BKE_object_eval_assign_data(), BKE_object_free_derived_caches(), blender::bke::AttributeAccessor::contains(), DEG_get_ctime(), DEG_get_original_object(), depsgraph, blender::bke::GeometrySet::get_component_for_write(), blender::bke::GeometrySet::get_grease_pencil(), blender::bke::GeometrySet::get_grease_pencil_for_write(), grease_pencil_do_layer_adjustments(), blender::bke::GeometryComponentEditData::grease_pencil_edit_hints_, grease_pencil_evaluate_modifiers(), blender::bke::GeometrySet::has_grease_pencil(), GreasePencil::id, int, OB_MODE_EDIT, blender::bke::GeometrySet::replace_grease_pencil(), and GreasePencil::runtime.
Referenced by BKE_object_handle_data_update().
| bool BKE_grease_pencil_drawing_attribute_required | ( | const GreasePencilDrawing * | , |
| const char * | name ) |
Definition at line 1895 of file grease_pencil.cc.
References ATTR_POSITION, and STREQ.
Referenced by BKE_attribute_required().
| void BKE_grease_pencil_duplicate_drawing_array | ( | const GreasePencil * | grease_pencil_src, |
| GreasePencil * | grease_pencil_dst ) |
Definition at line 2215 of file grease_pencil.cc.
References blender::bke::greasepencil::copy_drawing_array(), GreasePencil::drawing_array, and GreasePencil::drawing_array_num.
Referenced by grease_pencil_copy_data(), and blender::geometry::separate_grease_pencil_layer_selection().
| void BKE_grease_pencil_material_index_remove | ( | GreasePencil * | grease_pencil, |
| const int | index ) |
Definition at line 2505 of file grease_pencil.cc.
References blender::bke::CurvesGeometry::attributes_for_write(), BLI_assert, blender::bke::SpanAttributeWriter< T >::domain, blender::bke::SpanAttributeWriter< T >::finish(), GP_DRAWING, blender::bke::SpanAttributeWriter< T >::span, blender::bke::greasepencil::Drawing::strokes_for_write(), and wrap().
Referenced by material_data_index_remove_id().
| bool BKE_grease_pencil_material_index_used | ( | GreasePencil * | grease_pencil, |
| int | index ) |
Definition at line 2531 of file grease_pencil.cc.
References blender::bke::CurvesGeometry::attributes(), blender::Span< T >::contains(), GP_DRAWING, blender::bke::greasepencil::Drawing::strokes(), and wrap().
Referenced by BKE_object_material_slot_used().
| void BKE_grease_pencil_material_remap | ( | GreasePencil * | grease_pencil, |
| const uint * | remap, | ||
| int | totcol ) |
Definition at line 2480 of file grease_pencil.cc.
References blender::bke::CurvesGeometry::attributes_for_write(), BLI_assert, blender::bke::SpanAttributeWriter< T >::domain, blender::bke::SpanAttributeWriter< T >::finish(), GP_DRAWING, blender::bke::SpanAttributeWriter< T >::span, blender::bke::greasepencil::Drawing::strokes_for_write(), UNUSED_VARS_NDEBUG, and wrap().
Referenced by BKE_object_material_remap().
| GreasePencil * BKE_grease_pencil_new_nomain | ( | ) |
Definition at line 1908 of file grease_pencil.cc.
References BKE_id_new_nomain(), and ID_GP.
Referenced by BKE_grease_pencil_data_update(), blender::nodes::node_geo_curves_to_grease_pencil_cc::curve_instances_to_grease_pencil_layers(), blender::nodes::node_geo_curves_to_grease_pencil_cc::curves_to_grease_pencil_with_one_layer(), blender::nodes::node_geo_duplicate_elements_cc::duplicate_layers(), blender::geometry::execute_realize_grease_pencil_tasks(), blender::geometry::extract_greasepencil_layer_curves(), blender::geometry::extract_greasepencil_layer_points(), blender::geometry::extract_greasepencil_layers(), blender::ed::greasepencil::grease_pencil_merge_layer_exec(), blender::geometry::merge_layers(), blender::ed::object::object_convert_exec(), blender::geometry::separate_grease_pencil_layer_selection(), blender::ed::greasepencil::tests::TEST(), blender::ed::greasepencil::tests::TEST(), blender::ed::greasepencil::tests::TEST(), blender::ed::greasepencil::tests::TEST(), blender::ed::greasepencil::tests::TEST(), and blender::bke::bake::try_load_grease_pencil().
| void BKE_grease_pencil_nomain_to_grease_pencil | ( | GreasePencil * | grease_pencil_src, |
| GreasePencil * | grease_pencil_dst ) |
Move data from a grease pencil outside of the main data-base into a grease pencil in the data-base. Takes ownership of the source grease pencil.
Definition at line 1970 of file grease_pencil.cc.
References GreasePencil::active_node, BKE_id_free(), BLI_assert, CD_MASK_ALL, CustomData_free(), CustomData_init_from(), DEG_id_tag_update(), GreasePencil::drawing_array, GreasePencil::drawing_array_num, free_drawing_array(), GP_DRAWING, GP_DRAWING_REFERENCE, GreasePencil::id, ID_RECALC_GEOMETRY, GreasePencil::layers_data, GreasePencil::root_group_ptr, GreasePencilDrawingBase::type, and wrap().
Referenced by blender::ed::greasepencil::grease_pencil_merge_layer_exec(), and blender::ed::object::object_convert_exec().
Definition at line 2471 of file grease_pencil.cc.
References BKE_gpencil_material_attr_init(), BKE_grease_pencil_object_material_ensure_from_active_input_material(), and Material::gp_style.
| Material * BKE_grease_pencil_object_material_ensure_by_name | ( | Main * | bmain, |
| Object * | ob, | ||
| const char * | name, | ||
| int * | r_index ) |
Definition at line 2402 of file grease_pencil.cc.
References BKE_grease_pencil_object_material_index_get_by_name(), BKE_grease_pencil_object_material_new(), and BKE_object_material_get().
Referenced by blender::ed::greasepencil::add_material_from_template().
| Material * BKE_grease_pencil_object_material_ensure_from_active_input_brush | ( | Main * | bmain, |
| Object * | ob, | ||
| Brush * | brush ) |
Definition at line 2446 of file grease_pencil.cc.
References BKE_grease_pencil_object_material_ensure_from_active_input_material(), BKE_grease_pencil_object_material_ensure_from_brush(), BrushGpencilSettings::flag, GP_BRUSH_MATERIAL_PINNED, and Brush::gpencil_settings.
Referenced by blender::ed::sculpt_paint::grease_pencil_fill_init(), blender::ed::greasepencil::grease_pencil_primitive_invoke(), blender::ed::sculpt_paint::greasepencil::PaintOperation::on_stroke_begin(), and blender::ed::sculpt_paint::greasepencil::PaintOperation::on_stroke_done().
Definition at line 2463 of file grease_pencil.cc.
References Object::actcol, BKE_material_default_gpencil(), and BKE_object_material_get().
Referenced by BKE_grease_pencil_object_material_ensure_active(), and BKE_grease_pencil_object_material_ensure_from_active_input_brush().
| Material * BKE_grease_pencil_object_material_ensure_from_brush | ( | Main * | bmain, |
| Object * | ob, | ||
| Brush * | brush ) |
Definition at line 2426 of file grease_pencil.cc.
References Object::actcol, BKE_grease_pencil_brush_material_get(), BKE_MAT_ASSIGN_USERPREF, BKE_object_material_assign(), BKE_object_material_get(), BKE_object_material_index_get(), BKE_object_material_slot_add(), BrushGpencilSettings::flag, GP_BRUSH_MATERIAL_PINNED, Brush::gpencil_settings, and Object::totcol.
Referenced by BKE_grease_pencil_object_material_ensure_from_active_input_brush().
Definition at line 2390 of file grease_pencil.cc.
References Object::actcol, BKE_grease_pencil_brush_material_get(), BKE_object_material_get(), BrushGpencilSettings::flag, GP_BRUSH_MATERIAL_PINNED, and Brush::gpencil_settings.
Referenced by blender::ed::sculpt_paint::grease_pencil_brush_cursor_draw().
Definition at line 2359 of file grease_pencil.cc.
References BKE_object_material_get(), BKE_object_material_len_p(), Material::id, ID::name, and STREQ.
Referenced by BKE_grease_pencil_object_material_ensure_by_name(), and blender::io::grease_pencil::GreasePencilImporter::create_material().
| Material * BKE_grease_pencil_object_material_new | ( | Main * | bmain, |
| Object * | ob, | ||
| const char * | name, | ||
| int * | r_index ) |
Definition at line 2373 of file grease_pencil.cc.
References Object::actcol, BKE_gpencil_material_add(), BKE_MAT_ASSIGN_USERPREF, BKE_object_material_assign(), BKE_object_material_slot_add(), Material::id, id_us_min(), and Object::totcol.
Referenced by BKE_grease_pencil_object_material_ensure_by_name(), blender::ed::greasepencil::clipboard_materials_remap(), blender::io::grease_pencil::GreasePencilImporter::create_material(), and blender::ui::greasepencil::eyedropper_add_material().
| void BKE_grease_pencil_point_coords_apply | ( | GreasePencil & | grease_pencil, |
| GreasePencilPointCoordinates * | elem_data ) |
Definition at line 2290 of file grease_pencil.cc.
References GreasePencilPointCoordinates::co, GreasePencilFrame::drawing_index, GP_DRAWING, blender::math::invert(), blender::bke::greasepencil::Drawing::radii_for_write(), GreasePencilPointCoordinates::radius, blender::bke::greasepencil::Drawing::strokes_for_write(), blender::math::transform_point(), GreasePencilDrawingBase::type, and wrap().
Referenced by blender::ed::object::data_xform_restore().
| void BKE_grease_pencil_point_coords_apply_with_mat4 | ( | GreasePencil & | grease_pencil, |
| GreasePencilPointCoordinates * | elem_data, | ||
| const blender::float4x4 & | mat ) |
Definition at line 2320 of file grease_pencil.cc.
References GreasePencilPointCoordinates::co, GreasePencilFrame::drawing_index, GP_DRAWING, blender::math::invert(), mat4_to_scale(), blender::MatBase< T, NumCol, NumRow, Alignment >::ptr(), blender::bke::greasepencil::Drawing::radii_for_write(), GreasePencilPointCoordinates::radius, blender::bke::greasepencil::Drawing::strokes_for_write(), blender::math::transform_point(), GreasePencilDrawingBase::type, and wrap().
Referenced by blender::ed::object::data_xform_by_mat4().
| void BKE_grease_pencil_point_coords_get | ( | const GreasePencil & | grease_pencil, |
| GreasePencilPointCoordinates * | elem_data ) |
Definition at line 2260 of file grease_pencil.cc.
References GreasePencilPointCoordinates::co, copy_v3_v3(), GreasePencilFrame::drawing_index, GP_DRAWING, blender::bke::greasepencil::Drawing::radii(), GreasePencilPointCoordinates::radius, blender::bke::greasepencil::Drawing::strokes(), blender::math::transform_point(), GreasePencilDrawingBase::type, and wrap().
Referenced by blender::ed::object::data_xform_create_ex().
| bool BKE_grease_pencil_references_cyclic_check | ( | const GreasePencil * | id_reference, |
| const GreasePencil * | grease_pencil ) |
Definition at line 2576 of file grease_pencil.cc.
References grease_pencil_references_cyclic_check_internal().
| int BKE_grease_pencil_stroke_point_count | ( | const GreasePencil & | grease_pencil | ) |
Definition at line 2235 of file grease_pencil.cc.
References GreasePencilFrame::drawing_index, GP_DRAWING, blender::bke::CurvesGeometry::points_num(), blender::bke::greasepencil::Drawing::strokes(), GreasePencilDrawingBase::type, and wrap().
Referenced by blender::ed::object::data_xform_create_ex().
| void BKE_grease_pencil_vgroup_name_update | ( | Object * | ob, |
| const char * | old_name, | ||
| const char * | new_name ) |
Definition at line 2021 of file grease_pencil.cc.
References Object::data, LISTBASE_FOREACH, STRNCPY, blender::bke::greasepencil::Drawing::strokes_for_write(), and wrap().
Referenced by BKE_object_defgroup_set_name(), and ED_armature_bone_rename().
|
static |
Definition at line 3356 of file grease_pencil.cc.
References blender::VectorSet< Key, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::contains().
Referenced by unique_node_name_ex().
|
static |
Definition at line 2657 of file grease_pencil.cc.
References GP_DRAWING, GP_DRAWING_REFERENCE, and GreasePencilDrawingBase::type.
|
static |
Definition at line 4001 of file grease_pencil.cc.
Referenced by BKE_grease_pencil_nomain_to_grease_pencil(), and grease_pencil_free_data().
|
static |
Definition at line 3346 of file grease_pencil.cc.
References blender::VectorSet< Key, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::add().
Referenced by unique_node_name().
|
static |
Definition at line 218 of file grease_pencil.cc.
References BLO_read_pointer_array(), BLO_read_struct_list, CustomData_blend_read(), GreasePencil::layers_data, GreasePencil::material_array, GreasePencil::material_array_num, read_drawing_array(), read_layer_tree(), GreasePencil::runtime, and GreasePencil::vertex_group_names.
|
static |
Definition at line 188 of file grease_pencil.cc.
References BKE_defbase_blend_write(), BKE_id_blend_write(), BLO_write_id_struct, BLO_write_pointer_array(), CD_MASK_ALL, CustomData_blend_write(), CustomData_blend_write_prepare(), GreasePencil::id, GreasePencil::layers_data, GreasePencil::material_array, GreasePencil::material_array_num, GreasePencil::vertex_group_names, write_drawing_array(), and write_layer_tree().
|
static |
Definition at line 102 of file grease_pencil.cc.
References BKE_defgroup_copy_list(), BKE_grease_pencil_duplicate_drawing_array(), BLI_assert, CD_MASK_ALL, CustomData_init_from(), GreasePencil::layers_data, GreasePencil::material_array, MEM_dupallocN, GreasePencil::root_group_ptr, GreasePencil::runtime, and GreasePencil::vertex_group_names.
|
static |
Definition at line 2096 of file grease_pencil.cc.
References blender::bke::AttributeAccessor::contains(), blender::bke::Layer, blender::bke::AttributeAccessor::lookup_or_default(), blender::threading::parallel_for(), and blender::threading::parallel_for_each().
Referenced by BKE_grease_pencil_data_update().
|
static |
Definition at line 2036 of file grease_pencil.cc.
References BKE_modifier_get_info(), BKE_modifier_is_enabled(), BKE_modifiers_clear_errors(), BKE_modifiers_get_virtual_modifierlist(), BKE_object_is_in_editmode(), DAG_EVAL_RENDER, DEG_get_mode(), depsgraph, eModifierMode_Editmode, eModifierMode_Realtime, eModifierMode_Render, eModifierType_GreasePencilTime, MOD_APPLY_RENDER, MOD_APPLY_USECACHE, ModifierTypeInfo::modify_geometry_set, ModifierData::next, and ModifierData::type.
Referenced by BKE_grease_pencil_data_update().
|
static |
Definition at line 168 of file grease_pencil.cc.
References BKE_LIB_FOREACHID_PROCESS_IDSUPER, GP_DRAWING_REFERENCE, GreasePencilDrawingReference::id_reference, IDWALK_CB_USER, GreasePencil::material_array, and GreasePencil::material_array_num.
|
static |
Definition at line 148 of file grease_pencil.cc.
References BKE_animdata_free(), BKE_grease_pencil_batch_cache_free(), BLI_freelistN(), CustomData_free(), free_drawing_array(), GreasePencil::id, GreasePencil::layers_data, GreasePencil::material_array, MEM_SAFE_FREE, GreasePencil::runtime, and GreasePencil::vertex_group_names.
|
static |
Definition at line 85 of file grease_pencil.cc.
References BLI_assert, CustomData_reset(), DNA_struct_default_get, GreasePencil::layers_data, MEMCMP_STRUCT_AFTER_IS_ZERO, MEMCPY_STRUCT_AFTER, GreasePencil::root_group_ptr, and GreasePencil::runtime.
|
static |
Definition at line 2558 of file grease_pencil.cc.
References GP_DRAWING_REFERENCE, and grease_pencil_references_cyclic_check_internal().
Referenced by BKE_grease_pencil_references_cyclic_check(), and grease_pencil_references_cyclic_check_internal().
Definition at line 2612 of file grease_pencil.cc.
References BLI_assert, MEM_freeN(), and blender::uninitialized_relocate_n().
|
static |
Definition at line 3653 of file grease_pencil.cc.
References ATTR_FALLTHROUGH, eModifierType_GreasePencilArmature, eModifierType_GreasePencilArray, eModifierType_GreasePencilBuild, eModifierType_GreasePencilColor, eModifierType_GreasePencilDash, eModifierType_GreasePencilEnvelope, eModifierType_GreasePencilHook, eModifierType_GreasePencilLattice, eModifierType_GreasePencilLength, eModifierType_GreasePencilLineart, eModifierType_GreasePencilMirror, eModifierType_GreasePencilMultiply, eModifierType_GreasePencilNoise, eModifierType_GreasePencilOffset, eModifierType_GreasePencilOpacity, eModifierType_GreasePencilOutline, eModifierType_GreasePencilShrinkwrap, eModifierType_GreasePencilSimplify, eModifierType_GreasePencilSmooth, eModifierType_GreasePencilSubdiv, eModifierType_GreasePencilTexture, eModifierType_GreasePencilThickness, eModifierType_GreasePencilTime, eModifierType_GreasePencilTint, eModifierType_GreasePencilWeightAngle, eModifierType_GreasePencilWeightProximity, GreasePencilArmatureModifierData::influence, GreasePencilArrayModifierData::influence, GreasePencilBuildModifierData::influence, GreasePencilColorModifierData::influence, GreasePencilDashModifierData::influence, GreasePencilEnvelopeModifierData::influence, GreasePencilHookModifierData::influence, GreasePencilLatticeModifierData::influence, GreasePencilLengthModifierData::influence, GreasePencilMirrorModifierData::influence, GreasePencilMultiModifierData::influence, GreasePencilNoiseModifierData::influence, GreasePencilOffsetModifierData::influence, GreasePencilOpacityModifierData::influence, GreasePencilOutlineModifierData::influence, GreasePencilShrinkwrapModifierData::influence, GreasePencilSimplifyModifierData::influence, GreasePencilSmoothModifierData::influence, GreasePencilSubdivModifierData::influence, GreasePencilTextureModifierData::influence, GreasePencilThickModifierData::influence, GreasePencilTimeModifierData::influence, GreasePencilTintModifierData::influence, GreasePencilWeightAngleModifierData::influence, GreasePencilWeightProximityModifierData::influence, and ModifierData::type.
|
static |
Definition at line 3953 of file grease_pencil.cc.
References BLO_read_pointer_array(), BLO_read_struct, GreasePencil::drawing_array, GreasePencil::drawing_array_num, GP_DRAWING, GP_DRAWING_REFERENCE, GreasePencilDrawing::runtime, and GreasePencilDrawingBase::type.
Referenced by grease_pencil_blend_read_data().
|
static |
Definition at line 4012 of file grease_pencil.cc.
References BLO_read_int32_array(), BLO_read_string(), BLO_read_struct_array, BLO_read_struct_list, and LISTBASE_FOREACH.
Referenced by read_layer_tree_group().
|
static |
Definition at line 4065 of file grease_pencil.cc.
References GreasePencil::active_node, BLO_read_struct, read_layer_tree_group(), and GreasePencil::root_group_ptr.
Referenced by grease_pencil_blend_read_data().
|
static |
Definition at line 4039 of file grease_pencil.cc.
References BLO_read_string(), BLO_read_struct_list, GP_LAYER_TREE_GROUP, GP_LAYER_TREE_LEAF, LISTBASE_FOREACH, read_layer(), and read_layer_tree_group().
Referenced by read_layer_tree(), and read_layer_tree_group().
|
static |
Definition at line 3498 of file grease_pencil.cc.
References CD_CONSTRUCT, CD_MASK_ALL, CustomData_copy_data(), CustomData_free(), CustomData_init_layout_from(), blender::Span< T >::index_range(), and blender::Span< T >::size().
Referenced by reorder_layer_data().
|
static |
Definition at line 3511 of file grease_pencil.cc.
References BLI_assert, GreasePencil::layers_data, and reorder_customdata().
|
static |
Definition at line 2626 of file grease_pencil.cc.
References BLI_assert, MEM_freeN(), and blender::uninitialized_move_n().
|
static |
Definition at line 3824 of file grease_pencil.cc.
References CD_CONSTRUCT, CD_MASK_ALL, CustomData_copy_data(), CustomData_free(), CustomData_init_layout_from(), CustomData_realloc(), blender::IndexRange::is_empty(), blender::IndexRange::size(), and blender::IndexRange::start().
|
static |
Definition at line 3148 of file grease_pencil.cc.
References BLI_assert, blender::Span< T >::index_range(), blender::threading::parallel_for(), blender::MutableSpan< T >::size(), and blender::Span< T >::size().
Referenced by blender::ed::object::apply_objects_internal(), blender::ed::sculpt_paint::calc_bmesh(), blender::ed::sculpt_paint::calc_faces(), blender::ed::sculpt_paint::calc_grids(), blender::geometry::execute_realize_mesh_tasks(), blender::geometry::execute_realize_pointcloud_tasks(), blender::bke::CurvesGeometry::transform(), blender::geometry::transform_curve_edit_hints(), blender::geometry::transform_mesh(), and blender::geometry::transform_pointcloud().
|
static |
Definition at line 3387 of file grease_pencil.cc.
References DATA_, and unique_node_name().
|
static |
Definition at line 3370 of file grease_pencil.cc.
References get_node_names(), MAX_NAME, STRNCPY, unique_name(), and unique_node_name_ex().
Referenced by unique_layer_group_name().
|
static |
Definition at line 3363 of file grease_pencil.cc.
References BLI_uniquename_cb(), check_unique_node_cb(), and MAX_NAME.
Referenced by unique_node_name().
|
static |
Definition at line 3847 of file grease_pencil.cc.
References GreasePencil::root_group_ptr.
|
static |
Definition at line 3976 of file grease_pencil.cc.
References BLO_write_pointer_array(), BLO_write_struct, GreasePencil::drawing_array, GreasePencil::drawing_array_num, GP_DRAWING, GP_DRAWING_REFERENCE, GreasePencil::id, and GreasePencilDrawingBase::type.
Referenced by grease_pencil_blend_write().
|
static |
Definition at line 4084 of file grease_pencil.cc.
References BLO_write_int32_array(), BLO_write_string(), BLO_write_struct, BLO_write_struct_array, BLO_write_struct_list, and LISTBASE_FOREACH.
Referenced by write_layer_tree_group().
|
static |
Definition at line 4121 of file grease_pencil.cc.
References GreasePencil::root_group_ptr, and write_layer_tree_group().
Referenced by grease_pencil_blend_write().
|
static |
Definition at line 4101 of file grease_pencil.cc.
References BLO_write_string(), BLO_write_struct, GP_LAYER_TREE_GROUP, GP_LAYER_TREE_LEAF, LISTBASE_FOREACH, write_layer(), and write_layer_tree_group().
Referenced by write_layer_tree(), and write_layer_tree_group().
|
static |
Definition at line 75 of file grease_pencil.cc.
| void(* BKE_grease_pencil_batch_cache_dirty_tag_cb) (GreasePencil *grease_pencil, int mode) | ( | GreasePencil * | grease_pencil, |
| int | mode ) = nullptr |
Definition at line 2588 of file grease_pencil.cc.
Referenced by BKE_grease_pencil_batch_cache_dirty_tag(), and DRW_engines_register().
| void(* BKE_grease_pencil_batch_cache_free_cb) (GreasePencil *grease_pencil) | ( | GreasePencil * | grease_pencil | ) | = nullptr |
Definition at line 2590 of file grease_pencil.cc.
Referenced by BKE_grease_pencil_batch_cache_free(), and DRW_engines_register().
| IDTypeInfo IDType_ID_GP |
Definition at line 240 of file grease_pencil.cc.