Skip to content

Commit

Permalink
fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
gwaredd committed Nov 9, 2019
1 parent f1ae006 commit 0e066ab
Show file tree
Hide file tree
Showing 28 changed files with 64 additions and 72 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [1.0.2] - 2019-09-11

### Changes

* Removed runtime, moved into editor assembly
* Fix for wrong version number on workaround for unity bug

## [1.0.1] - 2019-11-03

### Fix
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
12 changes: 10 additions & 2 deletions Editor/Mischief.MDV.Editor.asmdef
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@
"references": [
"Mischief.MDV.Runtime"
],
"includePlatforms": [],
"excludePlatforms": []
"includePlatforms": [
"Editor"
],
"excludePlatforms": [],
"allowUnsafeCode": false,
"overrideReferences": false,
"precompiledReferences": [],
"autoReferenced": true,
"defineConstraints": [],
"versionDefines": []
}
19 changes: 12 additions & 7 deletions Editor/Scripts/MarkdownEditor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,21 @@ public override bool UseDefaultMargins()
// https://forum.unity.com/threads/oninspectorgui-not-being-called-on-defaultasset-in-2019-2-0f1.724328/
protected override void OnHeaderGUI()
{
OnInspectorGUI();
DrawEditor();
}
#else
public override void OnInspectorGUI()
{
DrawEditor();
}
#endif

public override void OnInspectorGUI()

//------------------------------------------------------------------------------

private Editor mDefaultEditor;

void DrawEditor()
{
if( mViewer != null )
{
Expand All @@ -75,11 +85,6 @@ public override void OnInspectorGUI()
}
}


//------------------------------------------------------------------------------

private Editor mDefaultEditor;

void DrawDefaultEditor()
{
mDefaultEditor = mDefaultEditor ?? CreateEditor( target, Type.GetType( "UnityEditor.TextAssetInspector, UnityEditor" ) );
Expand Down
8 changes: 0 additions & 8 deletions Runtime.meta

This file was deleted.

13 changes: 0 additions & 13 deletions Runtime/Mischief.MDV.Runtime.asmdef

This file was deleted.

7 changes: 0 additions & 7 deletions Runtime/Mischief.MDV.Runtime.asmdef.meta

This file was deleted.

4 changes: 2 additions & 2 deletions Tests/Editor/EdgeCases/markdown.markdown.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "com.mischief.markdownviewer",
"version": "1.0.1",
"version": "1.0.2",
"displayName": "Unity Markdown Viewer",
"description": "Editor inspector for markdown files",
"unity": "2017.4",
Expand Down

0 comments on commit 0e066ab

Please sign in to comment.