Merge remote-tracking branch 'origin/1.6' into 1.7
This commit is contained in:
@@ -41,7 +41,17 @@ namespace FlaxEditor.CustomEditors.Editors
|
||||
}
|
||||
else
|
||||
{
|
||||
element.CustomControl.Value = (Color)Values[0];
|
||||
var value = Values[0];
|
||||
if (value is Color asColor)
|
||||
element.CustomControl.Value = asColor;
|
||||
else if (value is Color32 asColor32)
|
||||
element.CustomControl.Value = asColor32;
|
||||
else if (value is Float4 asFloat4)
|
||||
element.CustomControl.Value = asFloat4;
|
||||
else if (value is Double4 asDouble4)
|
||||
element.CustomControl.Value = (Float4)asDouble4;
|
||||
else if (value is Vector4 asVector4)
|
||||
element.CustomControl.Value = asVector4;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -390,7 +390,6 @@ namespace FlaxEditor.CustomEditors.Editors
|
||||
|
||||
if (addTagDropPanel.IsClosed)
|
||||
{
|
||||
Debug.Log("Hit");
|
||||
nameTextBox.BorderColor = Color.Transparent;
|
||||
nameTextBox.BorderSelectedColor = FlaxEngine.GUI.Style.Current.BackgroundSelected;
|
||||
return;
|
||||
|
||||
@@ -363,7 +363,6 @@ namespace FlaxEditor.Surface.ContextMenu
|
||||
Profiler.BeginEvent("VisjectCM.RemoveGroup");
|
||||
if (group.Archetypes.Count == 0)
|
||||
{
|
||||
Debug.Log("Remove");
|
||||
_groups.RemoveAt(i);
|
||||
group.Dispose();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user