forked from 1b-agent/opencadstudio-upstream
feat(layer-state): add saved-state editor
This commit is contained in:
1 parent
1e624cc6b7
commit
6ecd67ff6e
12 files changed
+691
-14
No files matched your search
+4
-1
@@ -588,7 +588,10 @@ impl Scene {
|
||||
.map(|l| &l.color)
|
||||
.unwrap_or(&acadrust::types::Color::WHITE);
|
||||
let [r, g, b, _] = crate::scene::convert::tess_util::aci_to_rgba(color);
|
||||
[r, g, b, 1.0]
|
||||
let alpha = layer_entry
|
||||
.map(|layer| 1.0 - layer.transparency.as_percent() as f32)
|
||||
.unwrap_or(1.0);
|
||||
[r, g, b, alpha]
|
||||
}
|
||||
|
||||
pub fn custom_block_names(&self) -> Vec<String> {
|
||||
|
||||
Reference in new issue
Block a user