File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
editor/src/messages/portfolio/document/utility_types Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -525,15 +525,19 @@ impl LayerNodeIdentifier {
525
525
pub fn filled ( & self , network : & NodeNetwork ) -> bool {
526
526
use graph_craft:: document:: value:: TaggedValue ;
527
527
use graph_craft:: document:: NodeInput ;
528
+ use graphene_core:: vector:: style:: FillType ;
528
529
529
530
// TODO: make more concise
530
531
network. upstream_flow_back_from_nodes ( vec ! [ self . to_node( ) ] , true ) . any ( |( document_node, _) | {
531
532
document_node. name == "Fill"
532
533
&& document_node. inputs . iter ( ) . any ( |node_input| match node_input {
533
534
NodeInput :: Value { tagged_value, .. } => match tagged_value {
534
535
TaggedValue :: OptionalColor ( optional_color) => match optional_color {
535
- // TODO: Check if color is not fully transparent
536
- Some ( _color) => true ,
536
+ Some ( color) => color. a ( ) > f32:: EPSILON ,
537
+ _ => false ,
538
+ } ,
539
+ TaggedValue :: FillType ( fill_type) => match fill_type {
540
+ FillType :: Gradient => true ,
537
541
_ => false ,
538
542
} ,
539
543
_ => false ,
You can’t perform that action at this time.
0 commit comments