Fix multiple issues with CSGPolygon
This commit is contained in:
parent
810c30dc09
commit
cf771342cb
3 changed files with 288 additions and 462 deletions
|
|
@ -34,6 +34,7 @@
|
|||
#define CSGJS_HEADER_ONLY
|
||||
|
||||
#include "csg.h"
|
||||
#include "scene/3d/path_3d.h"
|
||||
#include "scene/3d/visual_instance_3d.h"
|
||||
#include "scene/resources/concave_polygon_shape_3d.h"
|
||||
#include "thirdparty/misc/mikktspace.h"
|
||||
|
|
@ -168,10 +169,8 @@ public:
|
|||
class CSGPrimitive3D : public CSGShape3D {
|
||||
GDCLASS(CSGPrimitive3D, CSGShape3D);
|
||||
|
||||
private:
|
||||
bool invert_faces;
|
||||
|
||||
protected:
|
||||
bool invert_faces;
|
||||
CSGBrush *_create_brush_from_arrays(const Vector<Vector3> &p_vertices, const Vector<Vector2> &p_uv, const Vector<bool> &p_smooth, const Vector<Ref<Material>> &p_materials);
|
||||
static void _bind_methods();
|
||||
|
||||
|
|
@ -361,7 +360,7 @@ private:
|
|||
PathRotation path_rotation;
|
||||
bool path_local;
|
||||
|
||||
Node *path_cache;
|
||||
Path3D *path;
|
||||
|
||||
bool smooth_faces;
|
||||
bool path_continuous_u;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue