makepad/platform/script/derive/src
Kevin Boos 62691a290e
Script derive: reload a field back to its own #[live] default (#1278)
When a reload/reapply/rebake didn't set a field, it got reset to its type's
default, not the default the field declares with `#[live(..)]`. So a new
widget and a reloaded one could disagree, e.g. a Label's
`#[live(Flow::right_wrap())] flow` became Flow's non-wrapping default after
any live edit or `request_script_reapply()`. That's why CalloutTooltip's
label stopped wrapping and just got cut off in narrow windows.

Now such a field goes back to its declared default, same as a new one would.
Fields without one still get their type's default.
2026-10-03 09:26:30 +02:00
..
derive_scriptable.rs Script derive: reload a field back to its own #[live] default (#1278) 2026-10-03 09:26:30 +02:00
error.rs First 2.0 2026-02-12 14:52:33 +01:00
lib.rs platform: GPU passes store top-left rows on every backend, hosted apps get software frames as textures, the Android desk renders at 120 Hz, and the platform builds warning-free on every CI target 2026-09-26 20:08:13 +02:00
script.rs tweaker + shader const-table: the design-feedback campaign — annotated props, hot-patchable shader constants, animator-state wells, the theme tab, typed editors, undo through anonymous paths 2026-09-01 16:46:26 +02:00
swizzle.rs First 2.0 2026-02-12 14:52:33 +01:00