mirror of
https://github.com/AnnulusGames/Alchemy.git
synced 2025-01-22 08:18:51 -05:00
Fix: error during build
This commit is contained in:
parent
6380011882
commit
ffed2a3896
@ -220,7 +220,8 @@ namespace Alchemy.Editor.Drawers
|
||||
{
|
||||
var att = (HorizontalLineAttribute)Attribute;
|
||||
var parent = Element.parent;
|
||||
var line = GUIHelper.CreateLine(att.Color, EditorGUIUtility.standardVerticalSpacing * 4f);
|
||||
var lineColor = att.Color == default ? GUIHelper.LineColor : att.Color;
|
||||
var line = GUIHelper.CreateLine(lineColor, EditorGUIUtility.standardVerticalSpacing * 4f);
|
||||
parent.Insert(parent.IndexOf(Element), line);
|
||||
}
|
||||
}
|
||||
|
@ -1,5 +1,4 @@
|
||||
using System;
|
||||
using UnityEditor;
|
||||
using UnityEngine;
|
||||
using UnityEngine.UIElements;
|
||||
|
||||
@ -135,7 +134,7 @@ namespace Alchemy.Inspector
|
||||
{
|
||||
public HorizontalLineAttribute()
|
||||
{
|
||||
Color = EditorGUIUtility.isProSkin ? new Color(0.4f, 0.4f, 0.4f) : new Color(0.6f, 0.6f, 0.6f);
|
||||
Color = default;
|
||||
}
|
||||
|
||||
public HorizontalLineAttribute(float r, float g, float b)
|
||||
|
Loading…
Reference in New Issue
Block a user