Entirely new (and much improved) animation editor.
This commit is contained in:
@@ -51,7 +51,6 @@
|
||||
#include "scene/resources/packed_scene.h"
|
||||
#include "servers/physics_2d_server.h"
|
||||
|
||||
#include "editor/animation_editor.h"
|
||||
#include "editor/editor_audio_buses.h"
|
||||
#include "editor/editor_file_system.h"
|
||||
#include "editor/editor_help.h"
|
||||
@@ -3038,6 +3037,7 @@ void EditorNode::register_editor_types() {
|
||||
ClassDB::register_class<EditorInspector>();
|
||||
ClassDB::register_class<EditorInspectorPlugin>();
|
||||
ClassDB::register_class<EditorProperty>();
|
||||
ClassDB::register_class<AnimationTrackEditPlugin>();
|
||||
|
||||
// FIXME: Is this stuff obsolete, or should it be ported to new APIs?
|
||||
ClassDB::register_class<EditorScenePostImport>();
|
||||
@@ -5300,6 +5300,8 @@ EditorNode::EditorNode() {
|
||||
file->connect("file_selected", this, "_dialog_action");
|
||||
file_templates->connect("file_selected", this, "_dialog_action");
|
||||
|
||||
preview_gen = memnew(AudioStreamPreviewGenerator);
|
||||
add_child(preview_gen);
|
||||
//plugin stuff
|
||||
|
||||
file_server = memnew(EditorFileServer);
|
||||
@@ -5382,8 +5384,7 @@ EditorNode::EditorNode() {
|
||||
resource_preview->add_preview_generator(Ref<EditorPackedScenePreviewPlugin>(memnew(EditorPackedScenePreviewPlugin)));
|
||||
resource_preview->add_preview_generator(Ref<EditorMaterialPreviewPlugin>(memnew(EditorMaterialPreviewPlugin)));
|
||||
resource_preview->add_preview_generator(Ref<EditorScriptPreviewPlugin>(memnew(EditorScriptPreviewPlugin)));
|
||||
// FIXME: Needs to be rewritten for AudioStream in Godot 3.0+
|
||||
//resource_preview->add_preview_generator( Ref<EditorSamplePreviewPlugin>( memnew(EditorSamplePreviewPlugin )));
|
||||
resource_preview->add_preview_generator(Ref<EditorAudioStreamPreviewPlugin>(memnew(EditorAudioStreamPreviewPlugin)));
|
||||
resource_preview->add_preview_generator(Ref<EditorMeshPreviewPlugin>(memnew(EditorMeshPreviewPlugin)));
|
||||
resource_preview->add_preview_generator(Ref<EditorBitmapPreviewPlugin>(memnew(EditorBitmapPreviewPlugin)));
|
||||
resource_preview->add_preview_generator(Ref<EditorFontPreviewPlugin>(memnew(EditorFontPreviewPlugin)));
|
||||
|
||||
Reference in New Issue
Block a user