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

samples: xz is the default plane

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

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

@@ -129,9 +129,12 @@ function draw_grid(lines, tm, center, size, axis, color)
 	elseif axis == "z" then
 		x = Matrix4x4.x(tm)
 		y = Matrix4x4.z(tm)
-	else
+	elseif axis == "xy" then
 		x = Matrix4x4.x(tm)
 		y = Matrix4x4.y(tm)
+	else
+		x = Matrix4x4.x(tm)
+		y = Matrix4x4.z(tm)
 	end
 
 	local cr, cg, cb, ca = Quaternion.elements(color)