Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenloader/intern/versioning_300.cc
| Show First 20 Lines • Show All 44 Lines • ▼ Show 20 Lines | |||||
| #include "BKE_anim_data.h" | #include "BKE_anim_data.h" | ||||
| #include "BKE_animsys.h" | #include "BKE_animsys.h" | ||||
| #include "BKE_armature.h" | #include "BKE_armature.h" | ||||
| #include "BKE_asset.h" | #include "BKE_asset.h" | ||||
| #include "BKE_attribute.h" | #include "BKE_attribute.h" | ||||
| #include "BKE_collection.h" | #include "BKE_collection.h" | ||||
| #include "BKE_colortools.h" | #include "BKE_colortools.h" | ||||
| #include "BKE_curve.h" | #include "BKE_curve.h" | ||||
| #include "BKE_curves.hh" | |||||
| #include "BKE_data_transfer.h" | #include "BKE_data_transfer.h" | ||||
| #include "BKE_deform.h" | #include "BKE_deform.h" | ||||
| #include "BKE_fcurve.h" | #include "BKE_fcurve.h" | ||||
| #include "BKE_fcurve_driver.h" | #include "BKE_fcurve_driver.h" | ||||
| #include "BKE_idprop.h" | #include "BKE_idprop.h" | ||||
| #include "BKE_image.h" | #include "BKE_image.h" | ||||
| #include "BKE_lib_id.h" | #include "BKE_lib_id.h" | ||||
| #include "BKE_lib_override.h" | #include "BKE_lib_override.h" | ||||
| ▲ Show 20 Lines • Show All 3,784 Lines • ▼ Show 20 Lines | |||||
| * \note Keep this message at the bottom of the function. | * \note Keep this message at the bottom of the function. | ||||
| */ | */ | ||||
| { | { | ||||
| /* Keep this block, even when empty. */ | /* Keep this block, even when empty. */ | ||||
| const int CV_SCULPT_SELECTION_ENABLED = (1 << 1); | const int CV_SCULPT_SELECTION_ENABLED = (1 << 1); | ||||
| LISTBASE_FOREACH (Curves *, curves_id, &bmain->hair_curves) { | LISTBASE_FOREACH (Curves *, curves_id, &bmain->hair_curves) { | ||||
| curves_id->flag &= ~CV_SCULPT_SELECTION_ENABLED; | curves_id->flag &= ~CV_SCULPT_SELECTION_ENABLED; | ||||
| } | } | ||||
| LISTBASE_FOREACH (Curves *, curves_id, &bmain->hair_curves) { | |||||
| BKE_id_attribute_rename(&curves_id->id, ".selection_point_float", ".selection", nullptr); | |||||
| BKE_id_attribute_rename(&curves_id->id, ".selection_curve_float", ".selection", nullptr); | |||||
| } | |||||
| } | } | ||||
| } | } | ||||