[Bf-blender-cvs] [2c784f44cf2] blender-v3.2-release: Cleanup: use proper naming in Warp modifier read/write code.
Bastien Montagne
noreply at git.blender.org
Thu May 12 17:45:33 CEST 2022
Commit: 2c784f44cf2c1b72b9e08fac6dd8f6861dfd0d83
Author: Bastien Montagne
Date: Thu May 12 17:44:43 2022 +0200
Branches: blender-v3.2-release
https://developer.blender.org/rB2c784f44cf2c1b72b9e08fac6dd8f6861dfd0d83
Cleanup: use proper naming in Warp modifier read/write code.
===================================================================
M source/blender/modifiers/intern/MOD_warp.c
===================================================================
diff --git a/source/blender/modifiers/intern/MOD_warp.c b/source/blender/modifiers/intern/MOD_warp.c
index e95d2983639..79972d1911d 100644
--- a/source/blender/modifiers/intern/MOD_warp.c
+++ b/source/blender/modifiers/intern/MOD_warp.c
@@ -491,20 +491,20 @@ static void panelRegister(ARegionType *region_type)
static void blendWrite(BlendWriter *writer, const ModifierData *md)
{
- const WarpModifierData *tmd = (const WarpModifierData *)md;
+ const WarpModifierData *wmd = (const WarpModifierData *)md;
- if (tmd->curfalloff) {
- BKE_curvemapping_blend_write(writer, tmd->curfalloff);
+ if (wmd->curfalloff) {
+ BKE_curvemapping_blend_write(writer, wmd->curfalloff);
}
}
static void blendRead(BlendDataReader *reader, ModifierData *md)
{
- WarpModifierData *tmd = (WarpModifierData *)md;
+ WarpModifierData *wmd = (WarpModifierData *)md;
- BLO_read_data_address(reader, &tmd->curfalloff);
- if (tmd->curfalloff) {
- BKE_curvemapping_blend_read(reader, tmd->curfalloff);
+ BLO_read_data_address(reader, &wmd->curfalloff);
+ if (wmd->curfalloff) {
+ BKE_curvemapping_blend_read(reader, wmd->curfalloff);
}
}
More information about the Bf-blender-cvs
mailing list