Skip to content

Commit

Permalink
Reset default brush to Light
Browse files Browse the repository at this point in the history
my bad
  • Loading branch information
mikeskydev committed Mar 26, 2024
1 parent bd1bb0d commit 452713d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
4 changes: 3 additions & 1 deletion Assets/Scenes/Main.unity
Original file line number Diff line number Diff line change
Expand Up @@ -10142,7 +10142,9 @@ MonoBehaviour:
m_EditorClassIdentifier:
m_GlobalNoiseTexture: {fileID: 2800000, guid: 13d389131c327b94f84fbac121bf6f8f,
type: 3}
m_DefaultBrush: {fileID: 11400000, guid: eb608f68fb3036b47be357a021ed7618, type: 2}
m_DefaultBrush: {fileID: 11400000, guid: b802f6ef146800b4bb78e9c705622cad, type: 2}
m_ZapboxDefaultBrush: {fileID: 11400000, guid: eb608f68fb3036b47be357a021ed7618,
type: 2}
m_BlocksMaterials:
- brushDescriptor: {fileID: 11400000, guid: 0e87b49c65463a343a448a556d7d6c3e, type: 2}
- brushDescriptor: {fileID: 11400000, guid: d6c87eafa4cdba042933c1b4f6da46f7, type: 2}
Expand Down
10 changes: 9 additions & 1 deletion Assets/Scripts/BrushCatalog.cs
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ public static void UnitTestTearDown(GameObject container)
public Texture2D m_GlobalNoiseTexture;

[SerializeField] private Brush m_DefaultBrush;
[SerializeField] private Brush m_ZapboxDefaultBrush;
private bool m_IsLoading;
private Dictionary<Guid, Brush> m_GuidToBrush;
private HashSet<Brush> m_AllBrushes;
Expand All @@ -82,7 +83,14 @@ public Brush GetBrush(Guid guid)
}
public Brush DefaultBrush
{
get { return m_DefaultBrush; }
get
{
#if ZAPBOX_SUPPORTED
// TODO:Mikesky - Fix brush transparency!
return m_ZapboxDefaultBrush;
#endif
return m_DefaultBrush;
}
}
public IEnumerable<Brush> AllBrushes
{
Expand Down

0 comments on commit 452713d

Please sign in to comment.