Skip to content

Commit

Permalink
Add additional check for TextureFrameTable
Browse files Browse the repository at this point in the history
  • Loading branch information
EllenGYY committed Mar 9, 2025
1 parent bad4bed commit 705ff62
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,10 @@ impl<'a> NodeGraphLayer<'a> {
/// Check if a layer is a raster layer
pub fn is_raster_layer(layer: LayerNodeIdentifier, network_interface: &mut NodeNetworkInterface) -> bool {
let layer_input_type = network_interface.input_type(&InputConnector::node(layer.to_node(), 1), &[]).0.nested_type();
if layer_input_type == concrete!(graphene_core::raster::image::ImageFrameTable<graphene_core::Color>) {
if layer_input_type == concrete!(graphene_core::raster::image::ImageFrameTable<graphene_core::Color>)
|| layer_input_type == concrete!(graphene_core::application_io::TextureFrameTable)
|| layer_input_type == concrete!(graphene_std::RasterFrame)
{
return true;
}
false
Expand Down

0 comments on commit 705ff62

Please sign in to comment.