mirror of
https://github.com/Matysh/houseplan-card
synced 2026-09-30 19:58:50 +00:00
fix: preserve resize wall thickness carriers
Issue: #298 User-Visible: yes
This commit is contained in:
@@ -234,6 +234,18 @@ export const MUTANTS = [
|
||||
replace: " if (false && !movingAxis) return { enabled: false, reason: 'diagonal' };",
|
||||
}],
|
||||
},
|
||||
{
|
||||
id: 'safe-resize-wall-endpoints-affine-scaled',
|
||||
guard: 'npx tsc -p tsconfig.test.json && node scripts/fix-test-build.mjs '
|
||||
+ '&& node --test --test-name-pattern="issue 298" test/wall-thickness.test.mjs',
|
||||
because: 'fixed-topology Resize may translate a moving wall or move its topology endpoint, '
|
||||
+ 'but proportional scaling invents a wall-record coordinate with no carrier (#298)',
|
||||
patches: [{
|
||||
file: 'src/wall-thickness.ts',
|
||||
find: " if (mode === 'fixed-topology') {\n",
|
||||
replace: " if (false && mode === 'fixed-topology') {\n",
|
||||
}],
|
||||
},
|
||||
{
|
||||
id: 'safe-resize-third-room-cascade-enabled',
|
||||
guard: 'npx tsc -p tsconfig.test.json && node scripts/fix-test-build.mjs '
|
||||
|
||||
Reference in New Issue
Block a user