Closed Comeza closed 1 week ago
In master (https://dev.graphite.rs) the issue is mostly fixed, but when there's no output at all, it doesn't show the white background like it should. Once you draw something like a shape, it correctly adds the white background though. @adamgerhant is that something you could take a quick look at fixing? Thanks!
The reason for the no white background is that the artboard group always returns true for an artboard, even if it is empty:
When the Exports node is disconnected (for example when creating an infinite canvas), it is set to NodeInput::Value
, where the tagged value is graphene_core::ArtboardGroup::EMPTY
. To display the white background, contains_artboard
should check if the ArtboardGroup has no artboards
fn contains_artboard(&self) -> bool {
self.artboards.len() > 0
}
This was resolved as part of #1768.
Provided error in node graph:
Steps: