From 2261e738c2eb27c304ebf241e75443d92658bf32 Mon Sep 17 00:00:00 2001 From: Hugo Locurcio Date: Sun, 7 Feb 2021 16:09:01 +0100 Subject: [PATCH] Improve the `SurfaceTool.generate_normals()` documentation (cherry picked from commit b8df8b10435114ec068c8164f8711e0a1d14709b) --- doc/classes/SurfaceTool.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/classes/SurfaceTool.xml b/doc/classes/SurfaceTool.xml index 9b9c9e9e4a3..3aeae2fbd4a 100644 --- a/doc/classes/SurfaceTool.xml +++ b/doc/classes/SurfaceTool.xml @@ -218,8 +218,8 @@ - Generates normals from vertices so you do not have to do it manually. If [code]flip[/code] is [code]true[/code], the resulting normals will be inverted. - Requires the primitive type to be set to [constant Mesh.PRIMITIVE_TRIANGLES]. + Generates normals from vertices so you do not have to do it manually. If [code]flip[/code] is [code]true[/code], the resulting normals will be inverted. [method generate_normals] should be called [i]after[/i] generating geometry and [i]before[/i] committing the mesh using [method commit] or [method commit_to_arrays]. + [b]Note:[/b] [method generate_normals] only works if the primitive type to be set to [constant Mesh.PRIMITIVE_TRIANGLES].