add_prop -> prop_add in VoxelWorld.

This commit is contained in:
Relintai 2020-10-27 13:26:59 +01:00
parent 0f69a9dce3
commit 494fe18746
2 changed files with 4 additions and 4 deletions

View File

@ -540,7 +540,7 @@ void VoxelWorld::set_chunks(const Vector<Variant> &chunks) {
}
#if PROPS_PRESENT
void VoxelWorld::add_prop(Transform tarnsform, const Ref<PropData> &prop, const bool apply_voxel_scael) {
void VoxelWorld::prop_add(Transform tarnsform, const Ref<PropData> &prop, const bool apply_voxel_scael) {
ERR_FAIL_COND(!prop.is_valid());
if (apply_voxel_scael) {
@ -573,7 +573,7 @@ void VoxelWorld::add_prop(Transform tarnsform, const Ref<PropData> &prop, const
if (!p.is_valid())
continue;
add_prop(t, p, false);
prop_add(t, p, false);
continue;
}
@ -1151,7 +1151,7 @@ void VoxelWorld::_bind_methods() {
ClassDB::bind_method(D_METHOD("on_chunk_mesh_generation_finished", "chunk"), &VoxelWorld::on_chunk_mesh_generation_finished);
#if PROPS_PRESENT
ClassDB::bind_method(D_METHOD("add_prop", "transform", "prop", "apply_voxel_scael"), &VoxelWorld::add_prop, DEFVAL(true));
ClassDB::bind_method(D_METHOD("prop_add", "transform", "prop", "apply_voxel_scael"), &VoxelWorld::prop_add, DEFVAL(true));
#endif
//Lights

View File

@ -162,7 +162,7 @@ public:
void set_chunks(const Vector<Variant> &chunks);
#if PROPS_PRESENT
void add_prop(Transform tarnsform, const Ref<PropData> &prop, const bool apply_voxel_scael = true);
void prop_add(Transform tarnsform, const Ref<PropData> &prop, const bool apply_voxel_scael = true);
#endif
//Lights