Minor fixes

This commit is contained in:
Wojciech Figat
2021-12-09 17:08:10 +01:00
parent 4f127761a0
commit 4a8291d596
5 changed files with 3 additions and 14 deletions

View File

@@ -33,9 +33,6 @@ namespace FlaxEditor.CustomEditors.Editors
/// <summary>
/// Gets or sets the allowed type (given type and all sub classes). Must be <see cref="System.Type"/> type of any subclass.
/// </summary>
/// <value>
/// The allowed type.
/// </value>
public ScriptType Type
{
get => _type;
@@ -57,9 +54,6 @@ namespace FlaxEditor.CustomEditors.Editors
/// <summary>
/// Gets or sets the selected types value.
/// </summary>
/// <value>
/// The value.
/// </value>
public ScriptType Value
{
get => _value;

View File

@@ -53,9 +53,6 @@ namespace FlaxEditor.GUI.Dialogs
/// <summary>
/// Gets the selected color.
/// </summary>
/// <value>
/// The color.
/// </value>
public Color SelectedColor
{
get => _value;

View File

@@ -58,7 +58,7 @@ namespace FlaxEditor.GUI.Dialogs
/// Initializes a new instance of the <see cref="ColorSelector"/> class.
/// </summary>
/// <param name="wheelSize">Size of the wheel.</param>
public ColorSelector(float wheelSize = 64)
public ColorSelector(float wheelSize)
: base(0, 0, wheelSize, wheelSize)
{
_colorWheelSprite = Editor.Instance.Icons.ColorWheel128;

View File

@@ -430,6 +430,8 @@ namespace FlaxEditor.Surface
internal static string GetVisualScriptTypeDescription(ScriptType type)
{
if (type == ScriptType.Null)
return "null";
var sb = new StringBuilder();
if (type.IsStatic)
sb.Append("static ");

View File

@@ -211,12 +211,8 @@ bool FindAssets(const ProjectInfo* project, HashSet<const ProjectInfo*>& project
bool Content::GetAssetInfo(const Guid& id, AssetInfo& info)
{
// Validate ID
if (!id.IsValid())
{
LOG(Warning, "Invalid asset ID.");
return false;
}
#if ENABLE_ASSETS_DISCOVERY