diff --git a/Assets/Fungus/Scripts/Editor/BlockInspector.cs b/Assets/Fungus/Scripts/Editor/BlockInspector.cs index 1ef5a062..fc064c3b 100644 --- a/Assets/Fungus/Scripts/Editor/BlockInspector.cs +++ b/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();