Cycles: Cleanup after recent refactor

Wrong indentation, wrong spacing.
This commit is contained in:
Sergey Sharybin
2016-05-16 10:55:50 +02:00
parent f70b548630
commit 22d53e558d

View File

@@ -233,13 +233,11 @@ int ImageManager::type_index_to_flattened_slot(int slot, ImageDataType type)
int ImageManager::flattened_slot_to_type_index(int flat_slot, ImageDataType *type)
{
if(flat_slot >= tex_image_byte_start)
{
if(flat_slot >= tex_image_byte_start) {
*type = IMAGE_DATA_TYPE_BYTE;
return flat_slot - tex_image_byte_start;
}
else if(flat_slot >= tex_image_float_start)
{
else if(flat_slot >= tex_image_float_start) {
*type = IMAGE_DATA_TYPE_FLOAT;
return flat_slot - tex_image_float_start;
}