Parcourir la source

tools: fix sound object type

Daniele Bartolini il y a 9 mois
Parent
commit
e7f9352c8a
2 fichiers modifiés avec 2 ajouts et 1 suppressions
  1. 1 0
      docs/changelog.rst
  2. 1 1
      tools/level_editor/editor_view.vala

+ 1 - 0
docs/changelog.rst

@@ -10,6 +10,7 @@ Changelog
 * Added mouse-only shortcuts (middle-button/wheel) to tumble/dolly the camera.
 * Added support to JPEG image format for textures.
 * Fixed importing sounds.
+* Fixed drag & drop of sound resources into the Editor View.
 
 **Runtime**
 

+ 1 - 1
tools/level_editor/editor_view.vala

@@ -142,7 +142,7 @@ public class EditorView : Gtk.EventBox
 		string type = ResourceId.type(resource_path);
 		string name = ResourceId.name(resource_path);
 
-		if (type == OBJECT_TYPE_UNIT || type == OBJECT_TYPE_SOUND_SOURCE) {
+		if (type == OBJECT_TYPE_UNIT || type == OBJECT_TYPE_SOUND) {
 			GLib.Application.get_default().activate_action("set-placeable", new GLib.Variant.tuple({ type, name }));
 
 			int scale = this.get_scale_factor();