Browse Source

Merge pull request #762 from Michaelwolf95/patch-1

Fix for BlockInspector Crash
master
Steve Halliwell 5 years ago committed by GitHub
parent
commit
a096c4c9e0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      Assets/Fungus/Scripts/Editor/BlockInspector.cs

2
Assets/Fungus/Scripts/Editor/BlockInspector.cs

@ -97,7 +97,7 @@ namespace Fungus.EditorUtils
!block.Equals(activeBlockEditor.target))
{
DestroyImmediate(activeBlockEditor);
activeBlockEditor = Editor.CreateEditor(block) as BlockEditor;
activeBlockEditor = Editor.CreateEditor(block, typeof(BlockEditor)) as BlockEditor;
}
UpdateWindowHeight();

Loading…
Cancel
Save