GPv3: Fix: Memory corruption after modifier conversion

The switch branches are not laid out in correct order and without
`break`s between some of them, leading to wrong conversion results.

Pull Request: https://projects.blender.org/blender/blender/pulls/119052
This commit is contained in:
YimingWu 2024-03-04 13:34:21 +01:00 committed by Falk David
parent 797b9f65e6
commit b3e46b65b9
1 changed files with 3 additions and 4 deletions

View File

@ -1718,13 +1718,12 @@ static void legacy_object_modifiers(Main & /*bmain*/, Object &object)
case eGpencilModifierType_WeightProximity:
legacy_object_modifier_weight_proximity(object, *gpd_md);
break;
case eGpencilModifierType_Build:
case eGpencilModifierType_Simplify:
case eGpencilModifierType_Texture:
case eGpencilModifierType_Lineart:
legacy_object_modifier_weight_lineart(object, *gpd_md);
break;
case eGpencilModifierType_Build:
case eGpencilModifierType_Simplify:
case eGpencilModifierType_Texture:
case eGpencilModifierType_Shrinkwrap:
case eGpencilModifierType_Outline:
break;