Fixed VoxelTerrain not working if no script is attached

master
Marc Gilleron 2017-01-02 23:57:50 +01:00
parent c38a822664
commit 7f12904d60
1 changed files with 0 additions and 6 deletions

View File

@ -89,12 +89,6 @@ void VoxelTerrain::update_blocks() {
if (!_map->has_block(block_pos)) {
// Get script
ScriptInstance * script = get_script_instance();
if (script == NULL) {
return;
}
// Create buffer
Ref<VoxelBuffer> buffer_ref = Ref<VoxelBuffer>(memnew(VoxelBuffer));
const Vector3i block_size(VoxelBlock::SIZE, VoxelBlock::SIZE, VoxelBlock::SIZE);