Daniele Bartolini 8 年 前
コミット
714614d05e
1 ファイル変更2 行追加2 行削除
  1. 2 2
      samples/core/editors/level_editor/level_editor.lua

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

@@ -564,7 +564,7 @@ end
 function PlaceTool:mouse_move(x, y)
 	if self:is_idle() then
 		local target = LevelEditor:find_spawn_point(x, y)
-		target = LevelEditor:snap(Matrix4x4.identity(target), target) or target
+		target = LevelEditor:snap(Matrix4x4.identity(), target) or target
 		self:set_position(target)
 	end
 
@@ -576,7 +576,7 @@ function PlaceTool:mouse_move(x, y)
 		local t = Math.ray_plane_intersection(pos, dir, point, normal)
 		if t ~= -1.0 then
 			local target = pos + dir * t
-			target = LevelEditor:snap(Matrix4x4.identity(target), target) or target
+			target = LevelEditor:snap(Matrix4x4.identity(), target) or target
 			self:set_position(target)
 		end
 	end