Minor fixes
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -53,9 +53,6 @@ namespace FlaxEditor.GUI.Dialogs
|
||||
/// <summary>
|
||||
/// Gets the selected color.
|
||||
/// </summary>
|
||||
/// <value>
|
||||
/// The color.
|
||||
/// </value>
|
||||
public Color SelectedColor
|
||||
{
|
||||
get => _value;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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 ");
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user