Add missing bindings for constants

Without those bindings, exported api.json generates the class without the enum despite having a method with a return value of that type. This fixes compilation with generated headers in godot-cpp
master
Roberto Benfatto 2021-04-01 17:45:07 +02:00 committed by GitHub
parent 225f332e1f
commit eef1d076a0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -640,4 +640,8 @@ void VoxelInstanceGenerator::_bind_methods() {
BIND_ENUM_CONSTANT(DISTRIBUTION_CUBIC);
BIND_ENUM_CONSTANT(DISTRIBUTION_QUINTIC);
BIND_ENUM_CONSTANT(DISTRIBUTION_COUNT);
BIND_ENUM_CONSTANT(DIMENSION_2D);
BIND_ENUM_CONSTANT(DIMENSION_3D);
BIND_ENUM_CONSTANT(DIMENSION_COUNT);
}