Browse Source

Fixed reference layer preview

flabbet 3 years ago
parent
commit
e7cc5b0876
1 changed files with 1 additions and 1 deletions
  1. 1 1
      PixiEditor/Views/UserControls/Layers/ReferenceLayer.xaml

+ 1 - 1
PixiEditor/Views/UserControls/Layers/ReferenceLayer.xaml

@@ -36,7 +36,7 @@
                             BorderThickness="1" BorderBrush="Black"
                             BorderThickness="1" BorderBrush="Black"
                             Background="{StaticResource MainColor}"
                             Background="{StaticResource MainColor}"
                             Margin="5, 0, 10, 0">
                             Margin="5, 0, 10, 0">
-                        <Image Source="{Binding Layer.LayerBitmap, ElementName=uc}" Stretch="Uniform" Width="25" Height="25" 
+                        <local1:PlainLayerView TargetLayer="{Binding Layer, ElementName=uc}" Width="25" Height="25" 
                        RenderOptions.BitmapScalingMode="NearestNeighbor"/>
                        RenderOptions.BitmapScalingMode="NearestNeighbor"/>
                     </Border>
                     </Border>
                     <Image Margin="0 0 5 0" Width="20" Source="/Images/Layer-add.png"  Visibility="{Binding Layer, ElementName=uc, Converter={converters:NullToVisibilityConverter}}"/>
                     <Image Margin="0 0 5 0" Width="20" Source="/Images/Layer-add.png"  Visibility="{Binding Layer, ElementName=uc, Converter={converters:NullToVisibilityConverter}}"/>