Prechádzať zdrojové kódy

samples: xz is the default plane

Daniele Bartolini 5 rokov pred
rodič
commit
fdce6ed992

+ 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
 	elseif axis == "z" then
 		x = Matrix4x4.x(tm)
 		x = Matrix4x4.x(tm)
 		y = Matrix4x4.z(tm)
 		y = Matrix4x4.z(tm)
-	else
+	elseif axis == "xy" then
 		x = Matrix4x4.x(tm)
 		x = Matrix4x4.x(tm)
 		y = Matrix4x4.y(tm)
 		y = Matrix4x4.y(tm)
+	else
+		x = Matrix4x4.x(tm)
+		y = Matrix4x4.z(tm)
 	end
 	end
 
 
 	local cr, cg, cb, ca = Quaternion.elements(color)
 	local cr, cg, cb, ca = Quaternion.elements(color)