godot-docs icon indicating copy to clipboard operation
godot-docs copied to clipboard

Mention that some SurfaceTool related functions only work with PRIMITIVE_TRIANGLES

Open LunaSquee opened this issue 8 years ago • 3 comments

Recently, I have been working with SurfaceTool and I noticed that some functions don't work with anything but PRIMITIVE_TRIANGLES.

SurfaceTool generate_normals() checks for PRIMITIVE_TRIANGLES explicitly but it isn't mentioned in the documentation. Mesh get_faces() seems to return an empty array when the mesh is not made using PRIMITIVE_TRIANGLES.

There might be more but this is what I've noticed.

LunaSquee avatar Jan 30 '18 17:01 LunaSquee

Oh no, I just noticed that the classes aren't a part of this repository. I'm sorry, I should've ensured that before creating an issue. I don't know if I need to close this or not

LunaSquee avatar Jan 30 '18 17:01 LunaSquee

Best to close this one and open a new issue in the engine repo proper, I think.

RiverMesa avatar Jan 30 '18 18:01 RiverMesa

Okay, thanks

LunaSquee avatar Jan 30 '18 19:01 LunaSquee