Просмотр исходного кода

samples: fix missing sound name

Daniele Bartolini 6 лет назад
Родитель
Сommit
8e3fe7a44e
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      samples/core/editors/level_editor/level_editor.lua

+ 1 - 1
samples/core/editors/level_editor/level_editor.lua

@@ -631,7 +631,7 @@ function PlaceTool:mouse_up(x, y)
 		LevelEditor._objects[guid] = level_object
 	elseif self._placeable_type == "sound" then
 		local guid = Device.guid()
-		level_object = SoundObject(LevelEditor._world, guid, "", 10.0, 1.0, false)
+		level_object = SoundObject(LevelEditor._world, guid, self._placeable, 10.0, 1.0, false)
 		level_object:set_local_position(self:position())
 		level_object:set_local_rotation(Quaternion.identity())