mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 11:01:49 +00:00
add 'xray_opacity' NotePreset property
This commit is contained in:
parent
3a1e90f517
commit
ef644ca56d
6 changed files with 30 additions and 15 deletions
|
|
@ -34,7 +34,8 @@ dv::value NotePreset::serialize() const {
|
|||
{"display", to_string(displayMode)},
|
||||
{"color", dv::to_value(color)},
|
||||
{"scale", scale},
|
||||
{"render_distance", renderDistance}
|
||||
{"render_distance", renderDistance},
|
||||
{"xray_opacity", xrayOpacity},
|
||||
});
|
||||
}
|
||||
|
||||
|
|
@ -47,4 +48,5 @@ void NotePreset::deserialize(const dv::value& src) {
|
|||
}
|
||||
src.at("scale").get(scale);
|
||||
src.at("render_distance").get(renderDistance);
|
||||
src.at("xray_opacity").get(xrayOpacity);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue