Removed the now unneeded build flags from PropMesher.

This commit is contained in:
Relintai 2021-08-11 16:48:48 +02:00
parent 3d1faef5ac
commit fb2e63702f
2 changed files with 6 additions and 11 deletions

View File

@ -24,7 +24,7 @@ SOFTWARE.
#include "modules/opensimplex/open_simplex_noise.h"
const String PropMesher::BINDING_STRING_BUILD_FLAGS = "Use Isolevel,Use Lighting,Use AO,Use RAO,Generate AO,Generate RAO,Bake Lights,Create Collider,Create Lods";
const String PropMesher::BINDING_STRING_BUILD_FLAGS = "Use Lighting,Use AO,Use RAO,Bake Lights";
bool PropMesher::Vertex::operator==(const Vertex &p_vertex) const {
if (vertex != p_vertex.vertex)
@ -961,7 +961,7 @@ PropMesher::PropMesher() {
_channel_index_isolevel = 0;
_texture_scale = 1;
_build_flags = PropMesher::BUILD_FLAG_CREATE_COLLIDER | PropMesher::BUILD_FLAG_CREATE_LODS;
_build_flags = 0;
_format = VisualServer::ARRAY_FORMAT_NORMAL | VisualServer::ARRAY_FORMAT_TEX_UV;

View File

@ -72,15 +72,10 @@ public:
const double PI = 3.141592653589793238463;
enum BuildFlags {
BUILD_FLAG_USE_ISOLEVEL = 1 << 0,
BUILD_FLAG_USE_LIGHTING = 1 << 1,
BUILD_FLAG_USE_AO = 1 << 2,
BUILD_FLAG_USE_RAO = 1 << 3,
BUILD_FLAG_GENERATE_AO = 1 << 4,
BUILD_FLAG_AUTO_GENERATE_RAO = 1 << 5,
BUILD_FLAG_BAKE_LIGHTS = 1 << 6,
BUILD_FLAG_CREATE_COLLIDER = 1 << 7,
BUILD_FLAG_CREATE_LODS = 1 << 8,
BUILD_FLAG_USE_LIGHTING = 1 << 0,
BUILD_FLAG_USE_AO = 1 << 1,
BUILD_FLAG_USE_RAO = 1 << 2,
BUILD_FLAG_BAKE_LIGHTS = 1 << 3,
};
struct Vertex {