ObjectTypeDB was renamed to ClassDB. Types are meant to be more generic to Variant.

All usages of "type" to refer to classes were renamed to "class"
ClassDB has been exposed to GDScript.
OBJ_TYPE() macro is now GDCLASS()
This commit is contained in:
Juan Linietsky
2017-01-02 23:03:46 -03:00
parent ce26eb74bc
commit 118eed485e
751 changed files with 8046 additions and 7810 deletions

View File

@ -860,25 +860,25 @@ void SurfaceTool::clear() {
void SurfaceTool::_bind_methods() {
ObjectTypeDB::bind_method(_MD("begin","primitive"),&SurfaceTool::begin);
ObjectTypeDB::bind_method(_MD("add_vertex","vertex"),&SurfaceTool::add_vertex);
ObjectTypeDB::bind_method(_MD("add_color","color"),&SurfaceTool::add_color);
ObjectTypeDB::bind_method(_MD("add_normal","normal"),&SurfaceTool::add_normal);
ObjectTypeDB::bind_method(_MD("add_tangent","tangent"),&SurfaceTool::add_tangent);
ObjectTypeDB::bind_method(_MD("add_uv","uv"),&SurfaceTool::add_uv);
ObjectTypeDB::bind_method(_MD("add_uv2","uv2"),&SurfaceTool::add_uv2);
ObjectTypeDB::bind_method(_MD("add_bones","bones"),&SurfaceTool::add_bones);
ObjectTypeDB::bind_method(_MD("add_weights","weights"),&SurfaceTool::add_weights);
ObjectTypeDB::bind_method(_MD("add_smooth_group","smooth"),&SurfaceTool::add_smooth_group);
ObjectTypeDB::bind_method(_MD("add_triangle_fan", "vertexes", "uvs", "colors", "uv2s", "normals", "tangents"),&SurfaceTool::add_triangle_fan, DEFVAL(Vector<Vector2>()), DEFVAL(Vector<Color>()), DEFVAL(Vector<Vector2>()),DEFVAL(Vector<Vector3>()), DEFVAL(Vector<Plane>()));
ObjectTypeDB::bind_method(_MD("set_material","material:Material"),&SurfaceTool::set_material);
ObjectTypeDB::bind_method(_MD("index"),&SurfaceTool::index);
ObjectTypeDB::bind_method(_MD("deindex"),&SurfaceTool::deindex);
///ObjectTypeDB::bind_method(_MD("generate_flat_normals"),&SurfaceTool::generate_flat_normals);
ObjectTypeDB::bind_method(_MD("generate_normals"),&SurfaceTool::generate_normals);
ObjectTypeDB::bind_method(_MD("add_index", "index"), &SurfaceTool::add_index);
ObjectTypeDB::bind_method(_MD("commit:Mesh","existing:Mesh"),&SurfaceTool::commit,DEFVAL(Variant()));
ObjectTypeDB::bind_method(_MD("clear"),&SurfaceTool::clear);
ClassDB::bind_method(_MD("begin","primitive"),&SurfaceTool::begin);
ClassDB::bind_method(_MD("add_vertex","vertex"),&SurfaceTool::add_vertex);
ClassDB::bind_method(_MD("add_color","color"),&SurfaceTool::add_color);
ClassDB::bind_method(_MD("add_normal","normal"),&SurfaceTool::add_normal);
ClassDB::bind_method(_MD("add_tangent","tangent"),&SurfaceTool::add_tangent);
ClassDB::bind_method(_MD("add_uv","uv"),&SurfaceTool::add_uv);
ClassDB::bind_method(_MD("add_uv2","uv2"),&SurfaceTool::add_uv2);
ClassDB::bind_method(_MD("add_bones","bones"),&SurfaceTool::add_bones);
ClassDB::bind_method(_MD("add_weights","weights"),&SurfaceTool::add_weights);
ClassDB::bind_method(_MD("add_smooth_group","smooth"),&SurfaceTool::add_smooth_group);
ClassDB::bind_method(_MD("add_triangle_fan", "vertexes", "uvs", "colors", "uv2s", "normals", "tangents"),&SurfaceTool::add_triangle_fan, DEFVAL(Vector<Vector2>()), DEFVAL(Vector<Color>()), DEFVAL(Vector<Vector2>()),DEFVAL(Vector<Vector3>()), DEFVAL(Vector<Plane>()));
ClassDB::bind_method(_MD("set_material","material:Material"),&SurfaceTool::set_material);
ClassDB::bind_method(_MD("index"),&SurfaceTool::index);
ClassDB::bind_method(_MD("deindex"),&SurfaceTool::deindex);
///ClassDB::bind_method(_MD("generate_flat_normals"),&SurfaceTool::generate_flat_normals);
ClassDB::bind_method(_MD("generate_normals"),&SurfaceTool::generate_normals);
ClassDB::bind_method(_MD("add_index", "index"), &SurfaceTool::add_index);
ClassDB::bind_method(_MD("commit:Mesh","existing:Mesh"),&SurfaceTool::commit,DEFVAL(Variant()));
ClassDB::bind_method(_MD("clear"),&SurfaceTool::clear);
}