You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
Merge pull request #70377 from dsnopek/server-export-mk2
Add "dedicated server" export mode which can strip unneeded visual resources
This commit is contained in:
@@ -615,6 +615,13 @@ Size2i Mesh::get_lightmap_size_hint() const {
|
||||
return lightmap_size_hint;
|
||||
}
|
||||
|
||||
Ref<Resource> Mesh::create_placeholder() const {
|
||||
Ref<PlaceholderMesh> placeholder;
|
||||
placeholder.instantiate();
|
||||
placeholder->set_aabb(get_aabb());
|
||||
return placeholder;
|
||||
}
|
||||
|
||||
void Mesh::_bind_methods() {
|
||||
ClassDB::bind_method(D_METHOD("set_lightmap_size_hint", "size"), &Mesh::set_lightmap_size_hint);
|
||||
ClassDB::bind_method(D_METHOD("get_lightmap_size_hint"), &Mesh::get_lightmap_size_hint);
|
||||
@@ -627,6 +634,7 @@ void Mesh::_bind_methods() {
|
||||
ClassDB::bind_method(D_METHOD("surface_get_blend_shape_arrays", "surf_idx"), &Mesh::surface_get_blend_shape_arrays);
|
||||
ClassDB::bind_method(D_METHOD("surface_set_material", "surf_idx", "material"), &Mesh::surface_set_material);
|
||||
ClassDB::bind_method(D_METHOD("surface_get_material", "surf_idx"), &Mesh::surface_get_material);
|
||||
ClassDB::bind_method(D_METHOD("create_placeholder"), &Mesh::create_placeholder);
|
||||
|
||||
BIND_ENUM_CONSTANT(PRIMITIVE_POINTS);
|
||||
BIND_ENUM_CONSTANT(PRIMITIVE_LINES);
|
||||
|
||||
Reference in New Issue
Block a user