|
Blender V4.3
|
Classes | |
| class | AnimDataConvertor |
| struct | AnimDataFCurveConvertor |
| struct | ConversionData |
| using blender::bke::greasepencil::convert::FCurveConvertCB = void(FCurve &fcurve) |
Definition at line 92 of file grease_pencil_convert_legacy.cc.
|
static |
Definition at line 1328 of file grease_pencil_convert_legacy.cc.
References FCurve::bezt, BKE_fcurve_handles_recalc(), fcurve_convert_thickness_cb(), FCurve::flag, FCurve::fpt, blender::bke::greasepencil::LEGACY_RADIUS_CONVERSION_FACTOR, FCurve::totvert, BezTriple::vec, and FPoint::vec.
Referenced by fcurve_convert_thickness_cb(), and legacy_object_thickness_modifier_thickness_anim().
|
static |
Find vertex groups that have assigned vertices in this drawing. Returns:
Definition at line 640 of file grease_pencil_convert_legacy.cc.
References BLI_addtail(), BLI_listbase_clear(), BLI_listbase_count(), def_group, LISTBASE_FOREACH, LISTBASE_FOREACH_INDEX, MEM_dupallocN, blender::Array< T, InlineBufferCapacity, Allocator >::reinitialize(), and bGPDframe::strokes.
Referenced by legacy_gpencil_frame_to_grease_pencil_drawing().
|
static |
Definition at line 723 of file grease_pencil_convert_legacy.cc.
References cross(), blender::MatBase< float, 4, 2 >::identity(), int, normalize(), bGPDstroke::points, bGPDstroke::totpoints, transpose(), bGPDspoint::x, bGPDspoint::y, and bGPDspoint::z.
Referenced by get_legacy_texture_matrix().
|
static |
Definition at line 681 of file grease_pencil_convert_legacy.cc.
References cos(), blender::math::from_scale(), blender::MatBase< T, NumCol, NumRow, Alignment >::identity(), and blender::math::safe_rcp().
Referenced by get_legacy_texture_matrix().
|
static |
Definition at line 762 of file grease_pencil_convert_legacy.cc.
References get_legacy_layer_to_stroke_matrix(), get_legacy_stroke_to_texture_matrix(), bGPDstroke::uv_rotation, bGPDstroke::uv_scale, and bGPDstroke::uv_translation.
|
static |
Definition at line 1383 of file grease_pencil_convert_legacy.cc.
References bGPdata::id, Object::id, and layer_adjustments_to_modifiers().
Referenced by layer_adjustments_to_modifiers(), and legacy_gpencil_object().
|
static |
Definition at line 785 of file grease_pencil_convert_legacy.cc.
References blender::Vector< T, InlineBufferCapacity, Allocator >::append(), BLI_assert, BLI_listbase_is_empty(), blender::bke::Curve, CURVE_TYPE_BEZIER, CURVE_TYPE_POLY, MDeformVert::dw, e, blender::bke::greasepencil::Drawing::fill_colors_for_write(), find_used_vertex_groups(), float, GP_CURVE_NEEDS_STROKE_UPDATE, GP_STROKE_CYCLIC, blender::bke::greasepencil::LEGACY_RADIUS_CONVERSION_FACTOR, LISTBASE_FOREACH, max_ff(), MEM_dupallocN, blender::bke::greasepencil::Drawing::opacities_for_write(), blender::threading::parallel_for(), blender::bke::Point, blender::bke::greasepencil::Drawing::radii_for_write(), blender::bke::CurvesGeometry::resize(), blender::MutableSpan< T >::slice(), blender::bke::SpanAttributeWriter< T >::span, bGPDframe::strokes, blender::bke::greasepencil::Drawing::strokes_for_write(), and blender::bke::greasepencil::Drawing::vertex_colors_for_write().
Referenced by legacy_gpencil_to_grease_pencil().
|
static |
Definition at line 3038 of file grease_pencil_convert_legacy.cc.
References blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::add(), BKE_id_new_in_lib(), BKE_object_free_derived_caches(), BLI_assert, blender::bke::greasepencil::convert::ConversionData::bmain, GS, bGPdata::id, GreasePencil::id, ID_GD_LEGACY, ID_GP, id_us_min(), id_us_plus(), layer_adjustments_to_modifiers(), legacy_gpencil_object(), legacy_gpencil_to_grease_pencil(), legacy_object_modifiers(), legacy_object_thickness_modifier_thickness_anim(), blender::bke::greasepencil::convert::ConversionData::legacy_to_greasepencil_data, ID::lib, blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::lookup_default(), ID::name, OB_GREASE_PENCIL, and thickness_factor_to_modifier().
Referenced by legacy_gpencil_object(), and legacy_main().
|
static |
Ensure that both use-cases of legacy grease pencil data (as object, and as annotations) are fully separated and valid (have proper tag). Annotation IDs are left as-is currently, while GPv2 data used by objects need to be converted to GPv3 data.
Definition at line 2900 of file grease_pencil_convert_legacy.cc.
References blender::Set< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::add(), blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::add_overwrite(), BKE_id_copy_in_lib(), BLI_assert, blender::Set< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::contains(), bGPdata::flag, FOREACH_MAIN_ID_BEGIN, FOREACH_MAIN_ID_END, GP_DATA_ANNOTATIONS, SpaceImage::gpd, SpaceNode::gpd, SpaceSeq::gpd, bGPdata::id, id_us_min(), id_us_plus_no_lib(), legacy_gpencil_sanitize_annotations(), ID::lib, LIB_ID_COPY_DEFAULT, LISTBASE_FOREACH, blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::lookup_or_add(), Main::movieclips, node_tree, Main::nodetrees, OB_GPENCIL_LEGACY, Main::objects, Main::scenes, Main::screens, SPACE_ACTION, SPACE_CLIP, SPACE_CONSOLE, SPACE_EMPTY, SPACE_FILE, SPACE_GRAPH, SPACE_IMAGE, SPACE_INFO, SPACE_NLA, SPACE_NODE, SPACE_OUTLINER, SPACE_PROPERTIES, SPACE_SCRIPT, SPACE_SEQ, SPACE_SPREADSHEET, SPACE_STATUSBAR, SPACE_TEXT, SPACE_TOPBAR, SPACE_USERPREF, and SPACE_VIEW3D.
Referenced by legacy_gpencil_sanitize_annotations(), and legacy_main().
|
static |
Convert Grease Pencil data flag.
Definition at line 1018 of file grease_pencil_convert_legacy.cc.
References GreasePencil::adt, GreasePencilLayer::base, BKE_animdata_copy_in_lib(), BKE_animdata_from_id(), BKE_defgroup_copy_list(), BKE_id_materials_copy(), GreasePencilLayer::blend_mode, BLI_addtail(), BLI_assert, BLI_str_escape(), BLI_strnlen(), blender::bke::greasepencil::convert::ConversionData::bmain, copy_m4_m4(), copy_v3_v3(), bGPdata::draw_mode, blender::bke::SpanAttributeWriter< T >::finish(), bGPdata::flag, GreasePencil::flag, GreasePencilFrame::flag, GreasePencilLayerMask::flag, GreasePencilLayerTreeNode::flag, blender::bke::greasepencil::Layer::frame_at(), bGPdata::gcolor_next, bGPdata::gcolor_prev, GP_DATA_AUTOLOCK_LAYERS, GP_DATA_EXPAND, GP_DRAWMODE_3D, GP_FRAME_SELECT, GP_FRAME_SELECTED, GP_LAYER_ACTIVE, GP_LAYER_DISABLE_MASKS_IN_VIEWLAYER, GP_LAYER_FRAMELOCK, GP_LAYER_HIDE, GP_LAYER_LOCKED, GP_LAYER_ONIONSKIN, GP_LAYER_SELECT, GP_LAYER_TREE_NODE_DISABLE_MASKS_IN_VIEWLAYER, GP_LAYER_TREE_NODE_HIDE_MASKS, GP_LAYER_TREE_NODE_HIDE_ONION_SKINNING, GP_LAYER_TREE_NODE_MUTE, GP_LAYER_TREE_NODE_USE_LIGHTS, GP_LAYER_USE_LIGHTS, GP_LAYER_USE_MASK, GP_ONION_FADE, GP_ONION_GHOST_NEXTCOL, GP_ONION_GHOST_PREVCOL, GP_ONION_LOOP, GP_ONION_SKINNING_SHOW_LOOP, GP_ONION_SKINNING_USE_CUSTOM_COLORS, GP_ONION_SKINNING_USE_FADE, GREASE_PENCIL_ANIM_CHANNEL_EXPANDED, GREASE_PENCIL_AUTOLOCK_LAYERS, GREASE_PENCIL_ONION_SKINNING_FILTER_ALL, GREASE_PENCIL_STROKE_ORDER_3D, bGPdata::gstep, bGPdata::gstep_next, bGPdata::id, GreasePencil::id, id_fake_user_set(), ID_FLAG_FAKEUSER, IDP_CopyProperty(), int, bGPdata::layers, legacy_gpencil_frame_to_grease_pencil_drawing(), legacy_gpencil_to_grease_pencil(), ID::lib, LIB_ID_COPY_DEFAULT, LISTBASE_FOREACH, LISTBASE_FOREACH_INDEX, blender::bke::MutableAttributeAccessor::lookup_or_add_for_write_span(), GreasePencilLayer::masks, bGPdata::onion_factor, bGPdata::onion_flag, bGPdata::onion_keytype, bGPdata::onion_mode, GreasePencil::onion_skinning_settings, GreasePencilLayer::opacity, GreasePencilOnionSkinningSettings::opacity, GreasePencilLayer::parent, Object::parent, GreasePencilLayer::parentinv, ID::properties, GreasePencilLayer::rotation, GreasePencilLayer::scale, SET_FLAG_FROM_TEST, blender::bke::greasepencil::Layer::set_parent_bone_name(), blender::bke::greasepencil::Layer::set_view_layer_name(), blender::bke::SpanAttributeWriter< T >::span, GreasePencilLayer::translation, bGPdata::vertex_group_active_index, GreasePencil::vertex_group_active_index, bGPdata::vertex_group_names, and GreasePencil::vertex_group_names.
Referenced by legacy_gpencil_object(), legacy_gpencil_to_grease_pencil(), and legacy_main().
| void blender::bke::greasepencil::convert::legacy_main | ( | Main & | bmain, |
| BlendfileLinkAppendContext * | lapp_context, | ||
| BlendFileReadReport & | reports ) |
Main entry point to convert all legacy GPData into GreasePencil data and objects.
Definition at line 3078 of file grease_pencil_convert_legacy.cc.
References blender::bke::id::IDRemapper::add(), blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::add(), blender::bke::id::IDRemapper::allow_idtype_mismatch, BKE_blendfile_link_append_context_item_foreach(), BKE_blendfile_link_append_context_item_newid_set(), BKE_BLENDFILE_LINK_APPEND_FOREACH_ITEM_FLAG_DO_DIRECT, BKE_BLENDFILE_LINK_APPEND_FOREACH_ITEM_FLAG_DO_INDIRECT, BKE_id_new_in_lib(), BKE_libblock_remap_multiple(), GP_DATA_ANNOTATIONS, Main::gpencils, GreasePencil::id, ID_GP, ID_REMAP_ALLOW_IDTYPE_MISMATCH, id_us_min(), blender::bke::greasepencil::convert::ConversionData::lapp_context, legacy_gpencil_object(), legacy_gpencil_sanitize_annotations(), legacy_gpencil_to_grease_pencil(), legacy_main(), blender::bke::greasepencil::convert::ConversionData::legacy_to_greasepencil_data, LISTBASE_FOREACH, blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::lookup_default(), blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::lookup_ptr(), OB_GPENCIL_LEGACY, and Main::objects.
Referenced by do_versions_after_setup(), and legacy_main().
|
static |
Definition at line 1637 of file grease_pencil_convert_legacy.cc.
References ARM_DEF_INVERT_VGROUP, eModifierType_GreasePencilArmature, legacy_object_modifier_armature(), legacy_object_modifier_common(), legacy_object_modifier_influence(), and ArmatureGpencilModifierData::object.
Referenced by legacy_object_modifier_armature(), and legacy_object_modifiers().
|
static |
Definition at line 1665 of file grease_pencil_convert_legacy.cc.
References copy_v3_v3(), eModifierType_GreasePencilArray, Object::flag, GP_ARRAY_INVERT_LAYER, GP_ARRAY_INVERT_LAYERPASS, GP_ARRAY_INVERT_MATERIAL, GP_ARRAY_INVERT_PASS, GP_ARRAY_UNIFORM_RANDOM_SCALE, GP_ARRAY_USE_OB_OFFSET, GP_ARRAY_USE_OFFSET, GP_ARRAY_USE_RELATIVE, legacy_object_modifier_array(), legacy_object_modifier_common(), legacy_object_modifier_influence(), MOD_GREASE_PENCIL_ARRAY_UNIFORM_RANDOM_SCALE, MOD_GREASE_PENCIL_ARRAY_USE_OB_OFFSET, MOD_GREASE_PENCIL_ARRAY_USE_OFFSET, MOD_GREASE_PENCIL_ARRAY_USE_RELATIVE, and ArrayGpencilModifierData::object.
Referenced by legacy_object_modifier_array(), and legacy_object_modifiers().
|
static |
Definition at line 2649 of file grease_pencil_convert_legacy.cc.
References eModifierType_GreasePencilBuild, BuildGpencilModifierData::flag, GP_BUILD_MODE_ADDITIVE, GP_BUILD_MODE_CONCURRENT, GP_BUILD_MODE_SEQUENTIAL, GP_BUILD_RESTRICT_TIME, GP_BUILD_TIMEALIGN_END, GP_BUILD_TIMEALIGN_START, GP_BUILD_TIMEMODE_DRAWSPEED, GP_BUILD_TIMEMODE_FRAMES, GP_BUILD_TIMEMODE_PERCENTAGE, GP_BUILD_TRANSITION_GROW, GP_BUILD_TRANSITION_SHRINK, GP_BUILD_TRANSITION_VANISH, GP_BUILD_USE_FADING, GP_WEIGHT_INVERT_LAYER, GP_WEIGHT_INVERT_LAYERPASS, GP_WEIGHT_INVERT_MATERIAL, GP_WEIGHT_INVERT_PASS, GP_WEIGHT_INVERT_VGROUP, legacy_object_modifier_build(), legacy_object_modifier_common(), legacy_object_modifier_influence(), MOD_GREASE_PENCIL_BUILD_MODE_ADDITIVE, MOD_GREASE_PENCIL_BUILD_MODE_CONCURRENT, MOD_GREASE_PENCIL_BUILD_MODE_SEQUENTIAL, MOD_GREASE_PENCIL_BUILD_RESTRICT_TIME, MOD_GREASE_PENCIL_BUILD_TIMEALIGN_END, MOD_GREASE_PENCIL_BUILD_TIMEALIGN_START, MOD_GREASE_PENCIL_BUILD_TIMEMODE_DRAWSPEED, MOD_GREASE_PENCIL_BUILD_TIMEMODE_FRAMES, MOD_GREASE_PENCIL_BUILD_TIMEMODE_PERCENTAGE, MOD_GREASE_PENCIL_BUILD_TRANSITION_GROW, MOD_GREASE_PENCIL_BUILD_TRANSITION_SHRINK, MOD_GREASE_PENCIL_BUILD_TRANSITION_VANISH, MOD_GREASE_PENCIL_BUILD_USE_FADING, and STRNCPY.
Referenced by legacy_object_modifier_build(), and legacy_object_modifiers().
|
static |
Definition at line 1713 of file grease_pencil_convert_legacy.cc.
References copy_v3_v3(), eModifierType_GreasePencilColor, GP_COLOR_CUSTOM_CURVE, GP_COLOR_INVERT_LAYER, GP_COLOR_INVERT_LAYERPASS, GP_COLOR_INVERT_MATERIAL, GP_COLOR_INVERT_PASS, GP_MODIFY_COLOR_BOTH, GP_MODIFY_COLOR_FILL, GP_MODIFY_COLOR_HARDNESS, GP_MODIFY_COLOR_STROKE, legacy_object_modifier_color(), legacy_object_modifier_common(), legacy_object_modifier_influence(), MOD_GREASE_PENCIL_COLOR_BOTH, MOD_GREASE_PENCIL_COLOR_FILL, MOD_GREASE_PENCIL_COLOR_HARDNESS, and MOD_GREASE_PENCIL_COLOR_STROKE.
Referenced by legacy_object_modifier_color(), and legacy_object_modifiers().
|
static |
Definition at line 1521 of file grease_pencil_convert_legacy.cc.
References BKE_animdata_from_id(), BKE_modifier_get_info(), BKE_modifier_new(), BKE_modifier_unique_name(), BKE_modifiers_persistent_uid_init(), BLI_addtail(), BLI_insertlinkbefore(), BLI_str_escape(), eModifierFlag_Active, eModifierFlag_OverrideLibrary_Local, eModifierTypeFlag_RequiresOriginalData, blender::bke::greasepencil::convert::AnimDataConvertor::fcurves_convert(), blender::bke::greasepencil::convert::AnimDataConvertor::fcurves_convert_finalize(), GpencilModifierData::flag, ModifierData::flag, ModifierTypeInfo::flags, legacy_object_modifier_common(), MAX_NAME, GpencilModifierData::mode, ModifierData::mode, GpencilModifierData::name, ModifierData::name, ModifierData::next, OnlyDeform, blender::bke::greasepencil::convert::AnimDataConvertor::root_path_dst, blender::bke::greasepencil::convert::AnimDataConvertor::root_path_src, STRNCPY_UTF8, ModifierData::type, ModifierTypeInfo::type, GpencilModifierData::ui_expand_flag, and ModifierData::ui_expand_flag.
Referenced by legacy_object_modifier_armature(), legacy_object_modifier_array(), legacy_object_modifier_build(), legacy_object_modifier_color(), legacy_object_modifier_common(), legacy_object_modifier_dash(), legacy_object_modifier_envelope(), legacy_object_modifier_hook(), legacy_object_modifier_lattice(), legacy_object_modifier_length(), legacy_object_modifier_lineart(), legacy_object_modifier_mirror(), legacy_object_modifier_multiply(), legacy_object_modifier_noise(), legacy_object_modifier_offset(), legacy_object_modifier_opacity(), legacy_object_modifier_outline(), legacy_object_modifier_shrinkwrap(), legacy_object_modifier_simplify(), legacy_object_modifier_smooth(), legacy_object_modifier_subdiv(), legacy_object_modifier_texture(), legacy_object_modifier_thickness(), legacy_object_modifier_time(), legacy_object_modifier_tint(), legacy_object_modifier_weight_angle(), and legacy_object_modifier_weight_proximity().
|
static |
Definition at line 1753 of file grease_pencil_convert_legacy.cc.
References DashGpencilModifierSegment::dash, GreasePencilDashModifierSegment::dash, DashGpencilModifierData::dash_offset, eModifierType_GreasePencilDash, DashGpencilModifierSegment::flag, GreasePencilDashModifierSegment::flag, DashGpencilModifierSegment::gap, GreasePencilDashModifierSegment::gap, GP_DASH_INVERT_LAYER, GP_DASH_INVERT_LAYERPASS, GP_DASH_INVERT_MATERIAL, GP_DASH_INVERT_PASS, GP_DASH_USE_CYCLIC, legacy_object_modifier_common(), legacy_object_modifier_dash(), legacy_object_modifier_influence(), DashGpencilModifierSegment::mat_nr, GreasePencilDashModifierSegment::mat_nr, MEM_SAFE_FREE, MOD_GREASE_PENCIL_DASH_USE_CYCLIC, DashGpencilModifierSegment::name, GreasePencilDashModifierSegment::name, DashGpencilModifierSegment::opacity, GreasePencilDashModifierSegment::opacity, DashGpencilModifierSegment::radius, GreasePencilDashModifierSegment::radius, and STRNCPY.
Referenced by legacy_object_modifier_dash(), and legacy_object_modifiers().
|
static |
Definition at line 1798 of file grease_pencil_convert_legacy.cc.
References eModifierType_GreasePencilEnvelope, GP_ENVELOPE_DEFORM, GP_ENVELOPE_FILLS, GP_ENVELOPE_INVERT_LAYER, GP_ENVELOPE_INVERT_LAYERPASS, GP_ENVELOPE_INVERT_MATERIAL, GP_ENVELOPE_INVERT_PASS, GP_ENVELOPE_INVERT_VGROUP, GP_ENVELOPE_SEGMENTS, legacy_object_modifier_common(), legacy_object_modifier_envelope(), legacy_object_modifier_influence(), MOD_GREASE_PENCIL_ENVELOPE_DEFORM, MOD_GREASE_PENCIL_ENVELOPE_FILLS, MOD_GREASE_PENCIL_ENVELOPE_SEGMENTS, and EnvelopeGpencilModifierData::mode.
Referenced by legacy_object_modifier_envelope(), and legacy_object_modifiers().
|
static |
Definition at line 1839 of file grease_pencil_convert_legacy.cc.
References copy_m4_m4(), copy_v3_v3(), eGPHook_Falloff_Const, eGPHook_Falloff_Curve, eGPHook_Falloff_InvSquare, eGPHook_Falloff_Linear, eGPHook_Falloff_None, eGPHook_Falloff_Root, eGPHook_Falloff_Sharp, eGPHook_Falloff_Smooth, eGPHook_Falloff_Sphere, eModifierType_GreasePencilHook, HookGpencilModifierData::flag, GP_HOOK_INVERT_LAYER, GP_HOOK_INVERT_LAYERPASS, GP_HOOK_INVERT_MATERIAL, GP_HOOK_INVERT_PASS, GP_HOOK_INVERT_VGROUP, GP_HOOK_UNIFORM_SPACE, legacy_object_modifier_common(), legacy_object_modifier_hook(), legacy_object_modifier_influence(), MOD_GREASE_PENCIL_HOOK_Falloff_Const, MOD_GREASE_PENCIL_HOOK_Falloff_Curve, MOD_GREASE_PENCIL_HOOK_Falloff_InvSquare, MOD_GREASE_PENCIL_HOOK_Falloff_Linear, MOD_GREASE_PENCIL_HOOK_Falloff_None, MOD_GREASE_PENCIL_HOOK_Falloff_Root, MOD_GREASE_PENCIL_HOOK_Falloff_Sharp, MOD_GREASE_PENCIL_HOOK_Falloff_Smooth, MOD_GREASE_PENCIL_HOOK_Falloff_Sphere, MOD_GREASE_PENCIL_HOOK_UNIFORM_SPACE, and STRNCPY.
Referenced by legacy_object_modifier_hook(), and legacy_object_modifiers().
|
static |
Definition at line 1577 of file grease_pencil_convert_legacy.cc.
References BKE_curvemapping_free(), GreasePencilModifierInfluenceData::custom_curve, blender::StringRefBase::data(), GreasePencilModifierInfluenceData::flag, GREASE_PENCIL_INFLUENCE_INVERT_LAYER_FILTER, GREASE_PENCIL_INFLUENCE_INVERT_LAYER_PASS_FILTER, GREASE_PENCIL_INFLUENCE_INVERT_MATERIAL_FILTER, GREASE_PENCIL_INFLUENCE_INVERT_MATERIAL_PASS_FILTER, GREASE_PENCIL_INFLUENCE_INVERT_VERTEX_GROUP, GREASE_PENCIL_INFLUENCE_USE_CUSTOM_CURVE, GREASE_PENCIL_INFLUENCE_USE_LAYER_PASS_FILTER, GREASE_PENCIL_INFLUENCE_USE_MATERIAL_PASS_FILTER, GreasePencilModifierInfluenceData::layer_name, GreasePencilModifierInfluenceData::layer_pass, legacy_object_modifier_influence(), GreasePencilModifierInfluenceData::material, material, GreasePencilModifierInfluenceData::material_pass, STRNCPY, and GreasePencilModifierInfluenceData::vertex_group_name.
Referenced by legacy_object_modifier_armature(), legacy_object_modifier_array(), legacy_object_modifier_build(), legacy_object_modifier_color(), legacy_object_modifier_dash(), legacy_object_modifier_envelope(), legacy_object_modifier_hook(), legacy_object_modifier_influence(), legacy_object_modifier_lattice(), legacy_object_modifier_length(), legacy_object_modifier_mirror(), legacy_object_modifier_multiply(), legacy_object_modifier_noise(), legacy_object_modifier_offset(), legacy_object_modifier_opacity(), legacy_object_modifier_outline(), legacy_object_modifier_shrinkwrap(), legacy_object_modifier_simplify(), legacy_object_modifier_smooth(), legacy_object_modifier_subdiv(), legacy_object_modifier_texture(), legacy_object_modifier_thickness(), legacy_object_modifier_time(), legacy_object_modifier_tint(), legacy_object_modifier_weight_angle(), and legacy_object_modifier_weight_proximity().
|
static |
Definition at line 1904 of file grease_pencil_convert_legacy.cc.
References eModifierType_GreasePencilLattice, GP_LATTICE_INVERT_LAYER, GP_LATTICE_INVERT_LAYERPASS, GP_LATTICE_INVERT_MATERIAL, GP_LATTICE_INVERT_PASS, GP_LATTICE_INVERT_VGROUP, legacy_object_modifier_common(), legacy_object_modifier_influence(), legacy_object_modifier_lattice(), and LatticeGpencilModifierData::object.
Referenced by legacy_object_modifier_lattice(), and legacy_object_modifiers().
|
static |
Definition at line 1932 of file grease_pencil_convert_legacy.cc.
References eModifierType_GreasePencilLength, LengthGpencilModifierData::flag, GP_LENGTH_INVERT_LAYER, GP_LENGTH_INVERT_LAYERPASS, GP_LENGTH_INVERT_MATERIAL, GP_LENGTH_INVERT_PASS, legacy_object_modifier_common(), legacy_object_modifier_influence(), and legacy_object_modifier_length().
Referenced by legacy_object_modifier_length(), and legacy_object_modifiers().
|
static |
Definition at line 2637 of file grease_pencil_convert_legacy.cc.
References eModifierType_GreasePencilLineart, legacy_object_modifier_common(), and legacy_object_modifier_lineart().
Referenced by legacy_object_modifier_lineart(), and legacy_object_modifiers().
|
static |
Definition at line 1970 of file grease_pencil_convert_legacy.cc.
References eModifierType_GreasePencilMirror, Object::flag, GP_MIRROR_AXIS_X, GP_MIRROR_AXIS_Y, GP_MIRROR_AXIS_Z, GP_MIRROR_INVERT_LAYER, GP_MIRROR_INVERT_LAYERPASS, GP_MIRROR_INVERT_MATERIAL, GP_MIRROR_INVERT_PASS, legacy_object_modifier_common(), legacy_object_modifier_influence(), legacy_object_modifier_mirror(), MOD_GREASE_PENCIL_MIRROR_AXIS_X, MOD_GREASE_PENCIL_MIRROR_AXIS_Y, MOD_GREASE_PENCIL_MIRROR_AXIS_Z, and MirrorGpencilModifierData::object.
Referenced by legacy_object_modifier_mirror(), and legacy_object_modifiers().
|
static |
Definition at line 2007 of file grease_pencil_convert_legacy.cc.
References eModifierType_GreasePencilMultiply, MultiplyGpencilModifierData::flag, GP_MIRROR_INVERT_LAYER, GP_MIRROR_INVERT_LAYERPASS, GP_MIRROR_INVERT_MATERIAL, GP_MIRROR_INVERT_PASS, GP_MULTIPLY_ENABLE_FADING, legacy_object_modifier_common(), legacy_object_modifier_influence(), legacy_object_modifier_multiply(), and MOD_GREASE_PENCIL_MULTIPLY_ENABLE_FADING.
Referenced by legacy_object_modifier_multiply(), and legacy_object_modifiers().
|
static |
Definition at line 2044 of file grease_pencil_convert_legacy.cc.
References eModifierType_GreasePencilNoise, NoiseGpencilModifierData::flag, GP_NOISE_CUSTOM_CURVE, GP_NOISE_INVERT_LAYER, GP_NOISE_INVERT_LAYERPASS, GP_NOISE_INVERT_MATERIAL, GP_NOISE_INVERT_PASS, GP_NOISE_INVERT_VGROUP, legacy_object_modifier_common(), legacy_object_modifier_influence(), and legacy_object_modifier_noise().
Referenced by legacy_object_modifier_noise(), and legacy_object_modifiers().
|
static |
Definition at line 2079 of file grease_pencil_convert_legacy.cc.
References copy_v3_v3(), eModifierType_GreasePencilOffset, OffsetGpencilModifierData::flag, GP_OFFSET_INVERT_LAYER, GP_OFFSET_INVERT_LAYERPASS, GP_OFFSET_INVERT_MATERIAL, GP_OFFSET_INVERT_PASS, GP_OFFSET_INVERT_VGROUP, GP_OFFSET_LAYER, GP_OFFSET_MATERIAL, GP_OFFSET_RANDOM, GP_OFFSET_STROKE, GP_OFFSET_UNIFORM_RANDOM_SCALE, legacy_object_modifier_common(), legacy_object_modifier_influence(), legacy_object_modifier_offset(), MOD_GREASE_PENCIL_OFFSET_LAYER, MOD_GREASE_PENCIL_OFFSET_MATERIAL, MOD_GREASE_PENCIL_OFFSET_RANDOM, MOD_GREASE_PENCIL_OFFSET_STROKE, and MOD_GREASE_PENCIL_OFFSET_UNIFORM_RANDOM_SCALE.
Referenced by legacy_object_modifier_offset(), and legacy_object_modifiers().
|
static |
Definition at line 2131 of file grease_pencil_convert_legacy.cc.
References eModifierType_GreasePencilOpacity, OpacityGpencilModifierData::flag, GP_MODIFY_COLOR_BOTH, GP_MODIFY_COLOR_FILL, GP_MODIFY_COLOR_HARDNESS, GP_MODIFY_COLOR_STROKE, GP_OPACITY_CUSTOM_CURVE, GP_OPACITY_INVERT_LAYER, GP_OPACITY_INVERT_LAYERPASS, GP_OPACITY_INVERT_MATERIAL, GP_OPACITY_INVERT_PASS, GP_OPACITY_INVERT_VGROUP, GP_OPACITY_NORMALIZE, GP_OPACITY_WEIGHT_FACTOR, legacy_object_modifier_common(), legacy_object_modifier_influence(), legacy_object_modifier_opacity(), MOD_GREASE_PENCIL_COLOR_BOTH, MOD_GREASE_PENCIL_COLOR_FILL, MOD_GREASE_PENCIL_COLOR_HARDNESS, MOD_GREASE_PENCIL_COLOR_STROKE, MOD_GREASE_PENCIL_OPACITY_USE_UNIFORM_OPACITY, and MOD_GREASE_PENCIL_OPACITY_USE_WEIGHT_AS_FACTOR.
Referenced by legacy_object_modifier_opacity(), and legacy_object_modifiers().
|
static |
Definition at line 2179 of file grease_pencil_convert_legacy.cc.
References eModifierType_GreasePencilOutline, OutlineGpencilModifierData::flag, GP_OUTLINE_INVERT_LAYER, GP_OUTLINE_INVERT_LAYERPASS, GP_OUTLINE_INVERT_MATERIAL, GP_OUTLINE_INVERT_PASS, GP_OUTLINE_KEEP_SHAPE, legacy_object_modifier_common(), legacy_object_modifier_influence(), legacy_object_modifier_outline(), and MOD_GREASE_PENCIL_OUTLINE_KEEP_SHAPE.
Referenced by legacy_object_modifier_outline(), and legacy_object_modifiers().
|
static |
Definition at line 2215 of file grease_pencil_convert_legacy.cc.
References eModifierType_GreasePencilShrinkwrap, GP_SHRINKWRAP_INVERT_LAYER, GP_SHRINKWRAP_INVERT_LAYERPASS, GP_SHRINKWRAP_INVERT_MATERIAL, GP_SHRINKWRAP_INVERT_PASS, GP_SHRINKWRAP_INVERT_VGROUP, legacy_object_modifier_common(), legacy_object_modifier_influence(), legacy_object_modifier_shrinkwrap(), and ShrinkwrapGpencilModifierData::shrink_type.
Referenced by legacy_object_modifier_shrinkwrap(), and legacy_object_modifiers().
|
static |
Definition at line 2743 of file grease_pencil_convert_legacy.cc.
References eModifierType_GreasePencilSimplify, GP_SIMPLIFY_ADAPTIVE, GP_SIMPLIFY_FIXED, GP_SIMPLIFY_INVERT_LAYER, GP_SIMPLIFY_INVERT_LAYERPASS, GP_SIMPLIFY_INVERT_MATERIAL, GP_SIMPLIFY_INVERT_PASS, GP_SIMPLIFY_MERGE, GP_SIMPLIFY_SAMPLE, legacy_object_modifier_common(), legacy_object_modifier_influence(), legacy_object_modifier_simplify(), MOD_GREASE_PENCIL_SIMPLIFY_ADAPTIVE, MOD_GREASE_PENCIL_SIMPLIFY_FIXED, MOD_GREASE_PENCIL_SIMPLIFY_MERGE, MOD_GREASE_PENCIL_SIMPLIFY_SAMPLE, and SimplifyGpencilModifierData::mode.
Referenced by legacy_object_modifier_simplify(), and legacy_object_modifiers().
|
static |
Definition at line 2259 of file grease_pencil_convert_legacy.cc.
References eModifierType_GreasePencilSmooth, SmoothGpencilModifierData::flag, GP_SMOOTH_CUSTOM_CURVE, GP_SMOOTH_INVERT_LAYER, GP_SMOOTH_INVERT_LAYERPASS, GP_SMOOTH_INVERT_MATERIAL, GP_SMOOTH_INVERT_PASS, GP_SMOOTH_INVERT_VGROUP, GP_SMOOTH_KEEP_SHAPE, GP_SMOOTH_MOD_LOCATION, GP_SMOOTH_MOD_STRENGTH, GP_SMOOTH_MOD_THICKNESS, GP_SMOOTH_MOD_UV, legacy_object_modifier_common(), legacy_object_modifier_influence(), legacy_object_modifier_smooth(), MOD_GREASE_PENCIL_SMOOTH_KEEP_SHAPE, MOD_GREASE_PENCIL_SMOOTH_MOD_LOCATION, MOD_GREASE_PENCIL_SMOOTH_MOD_STRENGTH, MOD_GREASE_PENCIL_SMOOTH_MOD_THICKNESS, and MOD_GREASE_PENCIL_SMOOTH_MOD_UV.
Referenced by legacy_object_modifier_smooth(), and legacy_object_modifiers().
|
static |
Definition at line 2302 of file grease_pencil_convert_legacy.cc.
References eModifierType_GreasePencilSubdiv, GP_SUBDIV_CATMULL, GP_SUBDIV_INVERT_LAYER, GP_SUBDIV_INVERT_LAYERPASS, GP_SUBDIV_INVERT_MATERIAL, GP_SUBDIV_INVERT_PASS, GP_SUBDIV_SIMPLE, legacy_object_modifier_common(), legacy_object_modifier_influence(), legacy_object_modifier_subdiv(), MOD_GREASE_PENCIL_SUBDIV_CATMULL, MOD_GREASE_PENCIL_SUBDIV_SIMPLE, and SubdivGpencilModifierData::type.
Referenced by legacy_object_modifier_subdiv(), and legacy_object_modifiers().
|
static |
Definition at line 2336 of file grease_pencil_convert_legacy.cc.
References copy_v2_v2(), eModifierType_GreasePencilTexture, FILL, GP_TEX_CONSTANT_LENGTH, GP_TEX_FIT_STROKE, GP_TEX_INVERT_LAYER, GP_TEX_INVERT_LAYERPASS, GP_TEX_INVERT_MATERIAL, GP_TEX_INVERT_PASS, GP_TEX_INVERT_VGROUP, legacy_object_modifier_common(), legacy_object_modifier_influence(), legacy_object_modifier_texture(), MOD_GREASE_PENCIL_TEXTURE_CONSTANT_LENGTH, MOD_GREASE_PENCIL_TEXTURE_FILL, MOD_GREASE_PENCIL_TEXTURE_FIT_STROKE, MOD_GREASE_PENCIL_TEXTURE_STROKE, MOD_GREASE_PENCIL_TEXTURE_STROKE_AND_FILL, TextureGpencilModifierData::mode, STROKE, and STROKE_AND_FILL.
Referenced by legacy_object_modifier_texture(), and legacy_object_modifiers().
|
static |
Definition at line 2387 of file grease_pencil_convert_legacy.cc.
References eModifierType_GreasePencilThickness, ThickGpencilModifierData::flag, GP_THICK_CUSTOM_CURVE, GP_THICK_INVERT_LAYER, GP_THICK_INVERT_LAYERPASS, GP_THICK_INVERT_MATERIAL, GP_THICK_INVERT_PASS, GP_THICK_INVERT_VGROUP, GP_THICK_NORMALIZE, GP_THICK_WEIGHT_FACTOR, legacy_object_modifier_common(), legacy_object_modifier_influence(), legacy_object_modifier_thickness(), blender::bke::greasepencil::LEGACY_RADIUS_CONVERSION_FACTOR, MOD_GREASE_PENCIL_THICK_NORMALIZE, and MOD_GREASE_PENCIL_THICK_WEIGHT_FACTOR.
Referenced by legacy_object_modifier_thickness(), and legacy_object_modifiers().
|
static |
Definition at line 2421 of file grease_pencil_convert_legacy.cc.
References eModifierType_GreasePencilTime, TimeGpencilModifierData::flag, GP_TIME_CUSTOM_RANGE, GP_TIME_INVERT_LAYER, GP_TIME_INVERT_LAYERPASS, GP_TIME_KEEP_LOOP, GP_TIME_MODE_CHAIN, GP_TIME_MODE_FIX, GP_TIME_MODE_NORMAL, GP_TIME_MODE_PINGPONG, GP_TIME_MODE_REVERSE, GP_TIME_SEG_MODE_NORMAL, GP_TIME_SEG_MODE_PINGPONG, GP_TIME_SEG_MODE_REVERSE, legacy_object_modifier_common(), legacy_object_modifier_influence(), legacy_object_modifier_time(), MEM_SAFE_FREE, MOD_GREASE_PENCIL_TIME_CUSTOM_RANGE, MOD_GREASE_PENCIL_TIME_KEEP_LOOP, MOD_GREASE_PENCIL_TIME_MODE_CHAIN, MOD_GREASE_PENCIL_TIME_MODE_FIX, MOD_GREASE_PENCIL_TIME_MODE_NORMAL, MOD_GREASE_PENCIL_TIME_MODE_PINGPONG, MOD_GREASE_PENCIL_TIME_MODE_REVERSE, MOD_GREASE_PENCIL_TIME_SEG_MODE_NORMAL, MOD_GREASE_PENCIL_TIME_SEG_MODE_PINGPONG, MOD_GREASE_PENCIL_TIME_SEG_MODE_REVERSE, GreasePencilTimeModifierSegment::name, TimeGpencilModifierSegment::name, TimeGpencilModifierSegment::seg_end, TimeGpencilModifierSegment::seg_mode, TimeGpencilModifierSegment::seg_repeat, TimeGpencilModifierSegment::seg_start, GreasePencilTimeModifierSegment::segment_end, GreasePencilTimeModifierSegment::segment_mode, GreasePencilTimeModifierSegment::segment_repeat, GreasePencilTimeModifierSegment::segment_start, and STRNCPY.
Referenced by legacy_object_modifier_time(), and legacy_object_modifiers().
|
static |
Definition at line 2499 of file grease_pencil_convert_legacy.cc.
References copy_v3_v3(), eModifierType_GreasePencilTint, TintGpencilModifierData::flag, GP_TINT_CUSTOM_CURVE, GP_TINT_GRADIENT, GP_TINT_INVERT_LAYER, GP_TINT_INVERT_LAYERPASS, GP_TINT_INVERT_MATERIAL, GP_TINT_INVERT_PASS, GP_TINT_INVERT_VGROUP, GP_TINT_UNIFORM, GP_TINT_WEIGHT_FACTOR, GPPAINT_MODE_BOTH, GPPAINT_MODE_FILL, GPPAINT_MODE_STROKE, legacy_object_modifier_common(), legacy_object_modifier_influence(), legacy_object_modifier_tint(), MEM_SAFE_FREE, MOD_GREASE_PENCIL_COLOR_BOTH, MOD_GREASE_PENCIL_COLOR_FILL, MOD_GREASE_PENCIL_COLOR_STROKE, MOD_GREASE_PENCIL_TINT_GRADIENT, MOD_GREASE_PENCIL_TINT_UNIFORM, and MOD_GREASE_PENCIL_TINT_USE_WEIGHT_AS_FACTOR.
Referenced by legacy_object_modifier_tint(), and legacy_object_modifiers().
|
static |
Definition at line 2555 of file grease_pencil_convert_legacy.cc.
References eModifierType_GreasePencilWeightAngle, WeightAngleGpencilModifierData::flag, GP_SPACE_LOCAL, GP_SPACE_WORLD, GP_WEIGHT_INVERT_LAYER, GP_WEIGHT_INVERT_LAYERPASS, GP_WEIGHT_INVERT_MATERIAL, GP_WEIGHT_INVERT_OUTPUT, GP_WEIGHT_INVERT_PASS, GP_WEIGHT_INVERT_VGROUP, GP_WEIGHT_MULTIPLY_DATA, legacy_object_modifier_common(), legacy_object_modifier_influence(), legacy_object_modifier_weight_angle(), MOD_GREASE_PENCIL_WEIGHT_ANGLE_INVERT_OUTPUT, MOD_GREASE_PENCIL_WEIGHT_ANGLE_MULTIPLY_DATA, MOD_GREASE_PENCIL_WEIGHT_ANGLE_SPACE_LOCAL, MOD_GREASE_PENCIL_WEIGHT_ANGLE_SPACE_WORLD, and STRNCPY.
Referenced by legacy_object_modifier_weight_angle(), and legacy_object_modifiers().
|
static |
Definition at line 2599 of file grease_pencil_convert_legacy.cc.
References eModifierType_GreasePencilWeightProximity, WeightProxGpencilModifierData::flag, GP_WEIGHT_INVERT_LAYER, GP_WEIGHT_INVERT_LAYERPASS, GP_WEIGHT_INVERT_MATERIAL, GP_WEIGHT_INVERT_OUTPUT, GP_WEIGHT_INVERT_PASS, GP_WEIGHT_INVERT_VGROUP, GP_WEIGHT_MULTIPLY_DATA, legacy_object_modifier_common(), legacy_object_modifier_influence(), legacy_object_modifier_weight_proximity(), MOD_GREASE_PENCIL_WEIGHT_PROXIMITY_INVERT_OUTPUT, MOD_GREASE_PENCIL_WEIGHT_PROXIMITY_MULTIPLY_DATA, and STRNCPY.
Referenced by legacy_object_modifier_weight_proximity(), and legacy_object_modifiers().
|
static |
Definition at line 2788 of file grease_pencil_convert_legacy.cc.
References BKE_gpencil_modifier_free_ex(), BLI_assert, BLI_listbase_is_empty(), BLI_pophead(), eGpencilModifierType_Armature, eGpencilModifierType_Array, eGpencilModifierType_Build, eGpencilModifierType_Color, eGpencilModifierType_Dash, eGpencilModifierType_Envelope, eGpencilModifierType_Hook, eGpencilModifierType_Lattice, eGpencilModifierType_Length, eGpencilModifierType_Lineart, eGpencilModifierType_Mirror, eGpencilModifierType_Multiply, eGpencilModifierType_Noise, eGpencilModifierType_None, eGpencilModifierType_Offset, eGpencilModifierType_Opacity, eGpencilModifierType_Outline, eGpencilModifierType_Shrinkwrap, eGpencilModifierType_Simplify, eGpencilModifierType_Smooth, eGpencilModifierType_Subdiv, eGpencilModifierType_Texture, eGpencilModifierType_Thick, eGpencilModifierType_Time, eGpencilModifierType_Tint, eGpencilModifierType_WeightAngle, eGpencilModifierType_WeightProximity, legacy_object_modifier_armature(), legacy_object_modifier_array(), legacy_object_modifier_build(), legacy_object_modifier_color(), legacy_object_modifier_dash(), legacy_object_modifier_envelope(), legacy_object_modifier_hook(), legacy_object_modifier_lattice(), legacy_object_modifier_length(), legacy_object_modifier_lineart(), legacy_object_modifier_mirror(), legacy_object_modifier_multiply(), legacy_object_modifier_noise(), legacy_object_modifier_offset(), legacy_object_modifier_opacity(), legacy_object_modifier_outline(), legacy_object_modifier_shrinkwrap(), legacy_object_modifier_simplify(), legacy_object_modifier_smooth(), legacy_object_modifier_subdiv(), legacy_object_modifier_texture(), legacy_object_modifier_thickness(), legacy_object_modifier_time(), legacy_object_modifier_tint(), legacy_object_modifier_weight_angle(), legacy_object_modifier_weight_proximity(), and legacy_object_modifiers().
Referenced by legacy_gpencil_object(), and legacy_object_modifiers().
|
static |
Definition at line 1348 of file grease_pencil_convert_legacy.cc.
References BKE_animdata_from_id(), BLI_str_escape(), blender::bke::greasepencil::convert::ConversionData::bmain, DEG_relations_tag_update(), eModifierType_GreasePencilThickness, fcurve_convert_thickness_cb(), legacy_object_thickness_modifier_thickness_anim(), LISTBASE_FOREACH, MAX_NAME, and modifier_name.
Referenced by legacy_gpencil_object(), and legacy_object_thickness_modifier_thickness_anim().
| void blender::bke::greasepencil::convert::lineart_unwrap_v3 | ( | LineartGpencilModifierData * | lmd_legacy, |
| const GreasePencilLineartModifierData * | lmd ) |
Definition at line 3189 of file grease_pencil_convert_legacy.cc.
References GreasePencilLineartModifierData::angle_splitting_threshold, LineartGpencilModifierData::angle_splitting_threshold, GreasePencilLineartModifierData::cache, LineartGpencilModifierData::cache, GreasePencilLineartModifierData::calculation_flags, LineartGpencilModifierData::calculation_flags, GreasePencilLineartModifierData::chain_smooth_tolerance, LineartGpencilModifierData::chain_smooth_tolerance, GreasePencilLineartModifierData::chaining_image_threshold, LineartGpencilModifierData::chaining_image_threshold, GreasePencilLineartModifierData::crease_threshold, LineartGpencilModifierData::crease_threshold, GreasePencilLineartModifierData::edge_types, LineartGpencilModifierData::edge_types, GreasePencilLineartModifierData::edge_types_override, LineartGpencilModifierData::edge_types_override, GreasePencilLineartModifierData::flags, LineartGpencilModifierData::flags, GreasePencilLineartModifierData::intersection_mask, LineartGpencilModifierData::intersection_mask, GreasePencilLineartModifierData::la_data_ptr, LineartGpencilModifierData::la_data_ptr, GreasePencilLineartModifierData::level_end, LineartGpencilModifierData::level_end, GreasePencilLineartModifierData::level_end_override, LineartGpencilModifierData::level_end_override, GreasePencilLineartModifierData::level_start, LineartGpencilModifierData::level_start, GreasePencilLineartModifierData::level_start_override, LineartGpencilModifierData::level_start_override, GreasePencilLineartModifierData::light_contour_object, LineartGpencilModifierData::light_contour_object, lineart_unwrap_v3(), GreasePencilLineartModifierData::mask_switches, LineartGpencilModifierData::mask_switches, GreasePencilLineartModifierData::material_mask_bits, LineartGpencilModifierData::material_mask_bits, GreasePencilLineartModifierData::opacity, LineartGpencilModifierData::opacity, GreasePencilLineartModifierData::overscan, LineartGpencilModifierData::overscan, GreasePencilLineartModifierData::shadow_camera_far, LineartGpencilModifierData::shadow_camera_far, GreasePencilLineartModifierData::shadow_camera_fov, LineartGpencilModifierData::shadow_camera_fov, GreasePencilLineartModifierData::shadow_camera_near, LineartGpencilModifierData::shadow_camera_near, GreasePencilLineartModifierData::shadow_camera_size, LineartGpencilModifierData::shadow_camera_size, GreasePencilLineartModifierData::shadow_selection, LineartGpencilModifierData::shadow_selection, GreasePencilLineartModifierData::shadow_selection_override, LineartGpencilModifierData::shadow_selection_override, GreasePencilLineartModifierData::shadow_use_silhouette_override, LineartGpencilModifierData::shadow_use_silhouette_override, GreasePencilLineartModifierData::silhouette_selection, LineartGpencilModifierData::silhouette_selection, GreasePencilLineartModifierData::source_camera, LineartGpencilModifierData::source_camera, GreasePencilLineartModifierData::source_collection, LineartGpencilModifierData::source_collection, GreasePencilLineartModifierData::source_object, LineartGpencilModifierData::source_object, GreasePencilLineartModifierData::source_type, LineartGpencilModifierData::source_type, GreasePencilLineartModifierData::source_vertex_group, LineartGpencilModifierData::source_vertex_group, STRNCPY, GreasePencilLineartModifierData::stroke_depth_offset, LineartGpencilModifierData::stroke_depth_offset, GreasePencilLineartModifierData::target_material, LineartGpencilModifierData::target_material, GreasePencilLineartModifierData::thickness, LineartGpencilModifierData::thickness, GreasePencilLineartModifierData::use_multiple_levels, LineartGpencilModifierData::use_multiple_levels, GreasePencilLineartModifierData::vgname, and LineartGpencilModifierData::vgname.
Referenced by lineart_main_try_generate_shadow(), and lineart_unwrap_v3().
| void blender::bke::greasepencil::convert::lineart_wrap_v3 | ( | const LineartGpencilModifierData * | lmd_legacy, |
| GreasePencilLineartModifierData * | lmd ) |
Definition at line 3145 of file grease_pencil_convert_legacy.cc.
References GreasePencilLineartModifierData::angle_splitting_threshold, LineartGpencilModifierData::angle_splitting_threshold, GreasePencilLineartModifierData::cache, LineartGpencilModifierData::cache, GreasePencilLineartModifierData::calculation_flags, LineartGpencilModifierData::calculation_flags, GreasePencilLineartModifierData::chain_smooth_tolerance, LineartGpencilModifierData::chain_smooth_tolerance, GreasePencilLineartModifierData::chaining_image_threshold, LineartGpencilModifierData::chaining_image_threshold, GreasePencilLineartModifierData::crease_threshold, LineartGpencilModifierData::crease_threshold, GreasePencilLineartModifierData::edge_types, LineartGpencilModifierData::edge_types, GreasePencilLineartModifierData::edge_types_override, LineartGpencilModifierData::edge_types_override, GreasePencilLineartModifierData::flags, LineartGpencilModifierData::flags, GreasePencilLineartModifierData::intersection_mask, LineartGpencilModifierData::intersection_mask, GreasePencilLineartModifierData::la_data_ptr, LineartGpencilModifierData::la_data_ptr, GreasePencilLineartModifierData::level_end, LineartGpencilModifierData::level_end, GreasePencilLineartModifierData::level_end_override, LineartGpencilModifierData::level_end_override, GreasePencilLineartModifierData::level_start, LineartGpencilModifierData::level_start, GreasePencilLineartModifierData::level_start_override, LineartGpencilModifierData::level_start_override, GreasePencilLineartModifierData::light_contour_object, LineartGpencilModifierData::light_contour_object, lineart_wrap_v3(), GreasePencilLineartModifierData::mask_switches, LineartGpencilModifierData::mask_switches, GreasePencilLineartModifierData::material_mask_bits, LineartGpencilModifierData::material_mask_bits, GreasePencilLineartModifierData::opacity, LineartGpencilModifierData::opacity, GreasePencilLineartModifierData::overscan, LineartGpencilModifierData::overscan, GreasePencilLineartModifierData::shadow_camera_far, LineartGpencilModifierData::shadow_camera_far, GreasePencilLineartModifierData::shadow_camera_fov, LineartGpencilModifierData::shadow_camera_fov, GreasePencilLineartModifierData::shadow_camera_near, LineartGpencilModifierData::shadow_camera_near, GreasePencilLineartModifierData::shadow_camera_size, LineartGpencilModifierData::shadow_camera_size, GreasePencilLineartModifierData::shadow_selection, LineartGpencilModifierData::shadow_selection, GreasePencilLineartModifierData::shadow_selection_override, LineartGpencilModifierData::shadow_selection_override, GreasePencilLineartModifierData::shadow_use_silhouette_override, LineartGpencilModifierData::shadow_use_silhouette_override, GreasePencilLineartModifierData::silhouette_selection, LineartGpencilModifierData::silhouette_selection, GreasePencilLineartModifierData::source_camera, LineartGpencilModifierData::source_camera, GreasePencilLineartModifierData::source_collection, LineartGpencilModifierData::source_collection, GreasePencilLineartModifierData::source_object, LineartGpencilModifierData::source_object, GreasePencilLineartModifierData::source_type, LineartGpencilModifierData::source_type, GreasePencilLineartModifierData::source_vertex_group, LineartGpencilModifierData::source_vertex_group, STRNCPY, GreasePencilLineartModifierData::stroke_depth_offset, LineartGpencilModifierData::stroke_depth_offset, GreasePencilLineartModifierData::target_layer, LineartGpencilModifierData::target_layer, GreasePencilLineartModifierData::target_material, LineartGpencilModifierData::target_material, GreasePencilLineartModifierData::thickness, LineartGpencilModifierData::thickness, GreasePencilLineartModifierData::use_multiple_levels, LineartGpencilModifierData::use_multiple_levels, GreasePencilLineartModifierData::vgname, and LineartGpencilModifierData::vgname.
Referenced by lineart_main_try_generate_shadow(), and lineart_wrap_v3().
|
static |
Definition at line 1181 of file grease_pencil_convert_legacy.cc.
References blender::bke::greasepencil::convert::ConversionData::bmain, DATA_, bNodeSocket::default_value, FLT_MAX, GEO_NODE_ASSET_MODIFIER, LISTBASE_FOREACH, bNode::locx, bNode::locy, NODE_INTERFACE_SOCKET_INPUT, NODE_INTERFACE_SOCKET_OUTPUT, NODE_MATH_ADD, offset_radius_node_tree_add(), OFFSET_RADIUS_NODETREE_NAME, PROP_DISTANCE, SOCK_IN, SOCK_OUT, bNodeTreeInterfaceSocket::socket_data, and bNodeSocketValueFloat::subtype.
Referenced by offset_radius_node_tree_add().
|
static |
Definition at line 1288 of file grease_pencil_convert_legacy.cc.
References bGPdata::id, Object::id, and thickness_factor_to_modifier().
Referenced by legacy_gpencil_object(), and thickness_factor_to_modifier().
|
constexpr |
Definition at line 1180 of file grease_pencil_convert_legacy.cc.
Referenced by offset_radius_node_tree_add().