mroxso and highperfocused
57d488032c
fix(doc): variable definitions follow layer id remapping on copy and load ( #5023 )
...
* fix(doc): variable definitions follow layer id remapping on copy and load
A duplicated document (image.duplicate, history.newDocument) or a .pcraft
loaded with remapped ids assigned fresh layer ids but cloned VariableDef.layer
unchanged, so datasets silently drove no layer (or, after remap, a colliding
one). Remap variable targets through the same id map as layer comps and
slices; a dangling target keeps a non-colliding placeholder. A merged-only
duplicate drops the whole variable binding set, matching how it drops comps.
Closes #4969
* style: cargo fmt duplicate_variables test
---------
Co-authored-by: highperfocused <highperfocused@pm.me >
2026-10-14 15:02:43 -07:00
..
2026-10-14 01:59:27 -04:00
2026-10-14 12:45:36 -04:00
2026-10-12 00:46:56 -04:00
2026-10-14 12:45:11 -04:00
2026-10-14 01:59:43 -04:00
2026-10-14 14:09:39 -04:00
2026-10-14 12:44:47 -04:00
2026-10-13 00:37:42 -04:00
2026-10-12 21:17:06 -04:00
2026-10-13 12:48:02 -04:00
2026-10-13 12:46:10 -04:00
2026-10-14 14:08:20 -04:00
2026-10-14 01:59:00 -04:00
2026-10-14 01:59:43 -04:00
2026-10-14 01:59:43 -04:00
2026-10-12 08:47:05 -04:00
2026-10-14 01:59:43 -04:00
2026-10-14 01:59:43 -04:00
2026-10-12 21:17:49 -04:00
2026-10-14 15:32:39 -04:00
2026-10-13 00:58:50 -04:00
2026-10-14 15:17:44 -04:00
2026-10-13 21:18:34 +02:00
2026-10-14 01:59:43 -04:00
2026-10-14 01:59:43 -04:00
2026-10-14 01:59:43 -04:00
2026-10-13 12:47:17 -04:00
2026-10-14 01:59:43 -04:00
2026-10-14 01:59:43 -04:00
2026-10-14 01:59:43 -04:00
2026-10-14 15:02:17 -07:00
2026-10-12 23:52:16 -04:00
2026-10-14 13:47:27 -04:00
2026-10-12 19:12:35 -04:00
2026-10-13 12:47:47 -04:00
2026-10-13 12:48:41 -04:00
2026-10-14 01:59:43 -04:00
2026-10-12 21:27:12 -04:00
2026-10-14 12:45:36 -04:00
2026-10-12 00:46:56 -04:00
2026-10-14 12:45:11 -04:00
2026-10-12 23:54:15 -04:00
2026-10-14 01:59:43 -04:00
2026-10-14 14:09:08 -04:00
2026-10-12 09:17:43 -04:00
2026-10-13 12:48:41 -04:00
2026-10-14 12:44:47 -04:00
2026-10-13 12:45:56 -04:00
2026-10-11 17:43:30 -04:00
2026-10-13 13:10:04 -04:00
2026-10-12 07:04:33 -04:00
2026-10-14 15:17:44 -04:00
2026-10-12 21:17:06 -04:00
2026-10-14 15:15:15 -04:00
2026-10-14 01:59:43 -04:00
2026-10-13 12:47:55 -04:00
2026-10-13 12:47:55 -04:00
2026-10-13 12:48:02 -04:00
2026-10-11 22:17:17 -04:00
2026-10-14 15:17:10 -04:00
2026-10-13 12:46:10 -04:00
2026-10-12 20:37:47 -04:00
2026-10-14 15:17:44 -04:00
2026-10-12 21:17:45 -04:00
2026-10-14 01:59:43 -04:00
2026-10-14 14:08:20 -04:00
2026-10-14 15:15:15 -04:00
2026-10-14 01:59:43 -04:00
2026-10-13 02:45:09 -04:00
2026-10-12 06:28:55 -04:00
2026-10-14 01:59:27 -04:00
2026-10-12 08:33:50 -04:00
2026-10-13 12:48:26 -04:00
2026-10-14 13:06:32 -04:00
2026-10-14 01:59:43 -04:00
2026-10-14 01:59:43 -04:00
2026-10-11 22:30:26 -04:00
2026-10-14 01:59:43 -04:00
2026-10-12 00:46:56 -04:00
2026-10-12 07:49:26 -04:00
2026-10-13 12:48:26 -04:00
2026-10-14 15:02:43 -07:00
2026-10-14 12:46:04 -04:00
2026-10-14 13:27:58 -04:00
2026-10-14 13:27:58 -04:00
2026-10-14 15:16:43 -04:00
2026-10-13 12:48:18 -04:00
2026-10-14 12:46:18 -04:00
2026-10-12 20:38:05 -04:00
2026-10-14 12:46:31 -04:00
2026-10-14 13:46:51 -04:00
2026-10-12 08:52:45 -04:00
2026-10-14 15:17:44 -04:00
2026-10-12 21:17:49 -04:00
2026-10-13 12:47:24 -04:00
2026-10-12 21:26:53 -04:00
2026-10-12 22:23:46 -04:00
2026-10-14 15:13:46 -04:00
2026-10-13 01:10:58 -04:00
2026-10-14 01:59:43 -04:00
2026-10-12 07:04:33 -04:00
2026-10-12 21:26:49 -04:00
2026-10-14 14:12:06 -04:00
2026-10-14 15:14:30 -04:00
2026-10-14 15:32:39 -04:00
2026-10-14 14:09:08 -04:00
2026-10-13 12:48:41 -04:00
2026-10-13 21:18:34 +02:00
2026-10-13 12:48:33 -04:00
2026-10-12 21:17:01 -04:00
2026-10-12 21:27:12 -04:00
2026-10-14 13:06:05 -04:00
2026-10-12 07:04:33 -04:00
2026-10-14 12:46:04 -04:00
2026-10-14 01:59:43 -04:00
2026-10-13 12:47:17 -04:00
2026-10-14 15:32:39 -04:00
2026-10-14 15:02:17 -07:00
2026-10-14 14:07:42 -04:00
2026-10-14 01:59:43 -04:00
2026-10-14 01:59:43 -04:00
2026-10-13 12:48:09 -04:00
2026-10-12 21:16:56 -04:00
2026-10-11 21:01:26 -04:00
2026-10-13 00:28:50 -04:00
2026-10-14 15:02:17 -07:00
2026-10-11 22:02:04 -04:00
2026-10-12 21:27:03 -04:00
2026-10-12 23:52:16 -04:00