diff options
| author | Juan Linietsky | 2017-08-15 11:41:17 -0300 |
|---|---|---|
| committer | Juan Linietsky | 2017-08-15 11:41:17 -0300 |
| commit | cb0e357d0b8565fcba6f2cf0ec5ea8e795e3fc2a (patch) | |
| tree | 253d73fcdaa02c01e08544a8718ed2f56cfeb1e4 /editor/editor_node.cpp | |
| parent | fdc2cdef0bc0d006effdfd4a64d097b0a3ba249d (diff) | |
| download | godot-cb0e357d0b8565fcba6f2cf0ec5ea8e795e3fc2a.tar.gz godot-cb0e357d0b8565fcba6f2cf0ec5ea8e795e3fc2a.tar.zst godot-cb0e357d0b8565fcba6f2cf0ec5ea8e795e3fc2a.zip | |
Converting to MeshLibrary works again, fixes #8092
Diffstat (limited to '')
| -rw-r--r-- | editor/editor_node.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/editor/editor_node.cpp b/editor/editor_node.cpp index 730ba3cac..b2e21fa16 100644 --- a/editor/editor_node.cpp +++ b/editor/editor_node.cpp @@ -1214,7 +1214,7 @@ void EditorNode::_dialog_action(String p_file) { ml = Ref<MeshLibrary>(memnew(MeshLibrary)); } - //MeshLibraryEditor::update_library_file(editor_data.get_edited_scene_root(),ml,true); + MeshLibraryEditor::update_library_file(editor_data.get_edited_scene_root(), ml, true); Error err = ResourceSaver::save(p_file, ml); if (err) { @@ -1246,7 +1246,7 @@ void EditorNode::_dialog_action(String p_file) { } } else { - ml = Ref<TileSet>(memnew(TileSet)); + ml.instance(); } TileSetEditor::update_library_file(editor_data.get_edited_scene_root(), ml, true); @@ -6058,7 +6058,7 @@ EditorNode::EditorNode() { add_editor_plugin(memnew(MultiMeshEditorPlugin(this))); add_editor_plugin(memnew(MeshInstanceEditorPlugin(this))); add_editor_plugin(memnew(AnimationTreeEditorPlugin(this))); - //add_editor_plugin( memnew( MeshLibraryEditorPlugin(this) ) ); + add_editor_plugin(memnew(MeshLibraryEditorPlugin(this))); add_editor_plugin(memnew(StyleBoxEditorPlugin(this))); add_editor_plugin(memnew(ParticlesEditorPlugin(this))); add_editor_plugin(memnew(ResourcePreloaderEditorPlugin(this))); |
