mirror of
https://github.com/Relintai/voxelman.git
synced 2024-11-20 10:47:19 +01:00
Remove unnecessary check.
This commit is contained in:
parent
1486959067
commit
e5bae8fb7e
@ -45,10 +45,6 @@ void VoxelSurfaceMerger::set_texture(const VoxelSurfaceSides side, const Ref<Tex
|
||||
}
|
||||
|
||||
void VoxelSurfaceMerger::refresh_rects() {
|
||||
VoxelLibraryMerger *lib = Object::cast_to<VoxelLibraryMerger>(_library);
|
||||
|
||||
ERR_FAIL_COND(lib == NULL);
|
||||
|
||||
for (int i = 0; i < VOXEL_SIDES_COUNT; ++i) {
|
||||
if (!_regions[i].is_valid()) {
|
||||
_rects[i] = Rect2();
|
||||
|
Loading…
Reference in New Issue
Block a user