mirror of
https://github.com/Relintai/voxelman.git
synced 2024-11-20 10:47:19 +01:00
add_prop -> prop_add in VoxelWorld.
This commit is contained in:
parent
0f69a9dce3
commit
494fe18746
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user