doc: Sync classref with current source

This commit is contained in:
Rémi Verschelde 2017-12-18 08:13:58 +01:00
parent aefa23eac1
commit abf20709af
6 changed files with 51 additions and 7 deletions

View file

@ -57,11 +57,7 @@
</constant>
<constant name="SUBDIV_1024" value="3" enum="Subdiv">
</constant>
<constant name="SUBDIV_2048" value="4" enum="Subdiv">
</constant>
<constant name="SUBDIV_4096" value="5" enum="Subdiv">
</constant>
<constant name="SUBDIV_MAX" value="6" enum="Subdiv">
<constant name="SUBDIV_MAX" value="4" enum="Subdiv">
</constant>
<constant name="BAKE_QUALITY_LOW" value="0" enum="BakeQuality">
</constant>
@ -73,5 +69,15 @@
</constant>
<constant name="BAKE_MODE_RAY_TRACE" value="1" enum="BakeMode">
</constant>
<constant name="BAKE_ERROR_OK" value="0" enum="BakeError">
</constant>
<constant name="BAKE_ERROR_NO_SAVE_PATH" value="1" enum="BakeError">
</constant>
<constant name="BAKE_ERROR_NO_MESHES" value="2" enum="BakeError">
</constant>
<constant name="BAKE_ERROR_CANT_CREATE_IMAGE" value="3" enum="BakeError">
</constant>
<constant name="BAKE_ERROR_USER_ABORTED" value="4" enum="BakeError">
</constant>
</constants>
</class>

View file

@ -16,6 +16,8 @@
</argument>
<argument index="1" name="lightmap" type="Texture">
</argument>
<argument index="2" name="instance" type="int">
</argument>
<description>
</description>
</method>

View file

@ -16,6 +16,12 @@
Clear the dictionary, removing all key/value pairs.
</description>
</method>
<method name="duplicate">
<return type="Dictionary">
</return>
<description>
</description>
</method>
<method name="empty">
<return type="bool">
</return>

View file

@ -352,7 +352,7 @@ void EditorSettingsDialog::_tabs_tab_changed(int p_tab) {
void EditorSettingsDialog::_focus_current_search_box() {
Control *tab = tabs->get_current_tab_control();
LineEdit* current_search_box;
LineEdit *current_search_box;
if (tab == tab_general)
current_search_box = search_box;
else if (tab == tab_shortcuts)

View file

@ -21,6 +21,26 @@
Clear all cells.
</description>
</method>
<method name="clear_baked_meshes">
<return type="void">
</return>
<description>
</description>
</method>
<method name="get_bake_mesh_instance">
<return type="RID">
</return>
<argument index="0" name="idx" type="int">
</argument>
<description>
</description>
</method>
<method name="get_bake_meshes">
<return type="Array">
</return>
<description>
</description>
</method>
<method name="get_cell_item" qualifiers="const">
<return type="int">
</return>
@ -103,6 +123,16 @@
Array of [Vector3] with the non empty cell coordinates in the grid map.
</description>
</method>
<method name="make_baked_meshes">
<return type="void">
</return>
<argument index="0" name="gen_lightmap_uv" type="bool" default="false">
</argument>
<argument index="1" name="lightmap_uv_texel_size" type="float" default="0.1">
</argument>
<description>
</description>
</method>
<method name="map_to_world" qualifiers="const">
<return type="Vector3">
</return>

View file

@ -133,7 +133,7 @@ void BakedLightmapData::_bind_methods() {
ClassDB::bind_method(D_METHOD("set_energy", "energy"), &BakedLightmapData::set_energy);
ClassDB::bind_method(D_METHOD("get_energy"), &BakedLightmapData::get_energy);
ClassDB::bind_method(D_METHOD("add_user", "path", "lightmap"), &BakedLightmapData::add_user);
ClassDB::bind_method(D_METHOD("add_user", "path", "lightmap", "instance"), &BakedLightmapData::add_user);
ClassDB::bind_method(D_METHOD("get_user_count"), &BakedLightmapData::get_user_count);
ClassDB::bind_method(D_METHOD("get_user_path", "user_idx"), &BakedLightmapData::get_user_path);
ClassDB::bind_method(D_METHOD("get_user_lightmap", "user_idx"), &BakedLightmapData::get_user_lightmap);