Skip to content

Commit

Permalink
fix for warning message
Browse files Browse the repository at this point in the history
  • Loading branch information
gwaredd committed Jul 6, 2021
1 parent 195b4a1 commit 2cbf0b9
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions Editor/Scripts/MarkdownEditor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -90,12 +90,10 @@ void DrawEditor()

void DrawDefaultEditor()
{
// if( mDefaultEditor == null )
// {
// mDefaultEditor = CreateEditor( target, Type.GetType( "UnityEditor.TextAssetInspector, UnityEditor" ) );
// }

mDefaultEditor = mDefaultEditor ?? CreateEditor( target, Type.GetType( "UnityEditor.TextAssetInspector, UnityEditor" ) );
if( mDefaultEditor == null )
{
mDefaultEditor = CreateEditor( target, Type.GetType( "UnityEditor.TextAssetInspector, UnityEditor" ) );
}

if( mDefaultEditor != null )
{
Expand Down

0 comments on commit 2cbf0b9

Please sign in to comment.