mirror of
https://github.com/godotengine/godot.git
synced 2024-11-15 16:43:10 +00:00
Remove old method that makes no sense today, fixes #25566
This commit is contained in:
parent
ff34cd58ff
commit
4b679f7f16
@ -1028,34 +1028,6 @@ AABB ArrayMesh::get_custom_aabb() const {
|
||||
return custom_aabb;
|
||||
}
|
||||
|
||||
void ArrayMesh::center_geometry() {
|
||||
|
||||
/*
|
||||
Vector3 ofs = aabb.pos+aabb.size*0.5;
|
||||
|
||||
for(int i=0;i<get_surface_count();i++) {
|
||||
|
||||
PoolVector<Vector3> geom = surface_get_array(i,ARRAY_VERTEX);
|
||||
int gc =geom.size();
|
||||
PoolVector<Vector3>::Write w = geom.write();
|
||||
surfaces[i].aabb.pos-=ofs;
|
||||
|
||||
for(int i=0;i<gc;i++) {
|
||||
|
||||
w[i]-=ofs;
|
||||
}
|
||||
|
||||
w = PoolVector<Vector3>::Write();
|
||||
|
||||
surface_set_array(i,ARRAY_VERTEX,geom);
|
||||
|
||||
}
|
||||
|
||||
aabb.pos-=ofs;
|
||||
|
||||
*/
|
||||
}
|
||||
|
||||
void ArrayMesh::regen_normalmaps() {
|
||||
|
||||
Vector<Ref<SurfaceTool> > surfs;
|
||||
@ -1295,8 +1267,6 @@ void ArrayMesh::_bind_methods() {
|
||||
ClassDB::bind_method(D_METHOD("create_trimesh_shape"), &ArrayMesh::create_trimesh_shape);
|
||||
ClassDB::bind_method(D_METHOD("create_convex_shape"), &ArrayMesh::create_convex_shape);
|
||||
ClassDB::bind_method(D_METHOD("create_outline", "margin"), &ArrayMesh::create_outline);
|
||||
ClassDB::bind_method(D_METHOD("center_geometry"), &ArrayMesh::center_geometry);
|
||||
ClassDB::set_method_flags(get_class_static(), _scs_create("center_geometry"), METHOD_FLAGS_DEFAULT | METHOD_FLAG_EDITOR);
|
||||
ClassDB::bind_method(D_METHOD("regen_normalmaps"), &ArrayMesh::regen_normalmaps);
|
||||
ClassDB::set_method_flags(get_class_static(), _scs_create("regen_normalmaps"), METHOD_FLAGS_DEFAULT | METHOD_FLAG_EDITOR);
|
||||
ClassDB::bind_method(D_METHOD("lightmap_unwrap", "transform", "texel_size"), &ArrayMesh::lightmap_unwrap);
|
||||
|
@ -223,7 +223,6 @@ public:
|
||||
AABB get_aabb() const;
|
||||
virtual RID get_rid() const;
|
||||
|
||||
void center_geometry();
|
||||
void regen_normalmaps();
|
||||
|
||||
Error lightmap_unwrap(const Transform &p_base_transform = Transform(), float p_texel_size = 0.05);
|
||||
|
Loading…
Reference in New Issue
Block a user