Merge branch 'blender2.7'
This commit is contained in:
@@ -333,6 +333,10 @@ int ImageManager::add_image(const string& filename,
|
|||||||
img->use_alpha = use_alpha;
|
img->use_alpha = use_alpha;
|
||||||
img->need_load = true;
|
img->need_load = true;
|
||||||
}
|
}
|
||||||
|
if(!(img->metadata == metadata)) {
|
||||||
|
img->metadata = metadata;
|
||||||
|
img->need_load = true;
|
||||||
|
}
|
||||||
img->users++;
|
img->users++;
|
||||||
return type_index_to_flattened_slot(slot, type);
|
return type_index_to_flattened_slot(slot, type);
|
||||||
}
|
}
|
||||||
|
@@ -44,6 +44,18 @@ public:
|
|||||||
/* Automatically set. */
|
/* Automatically set. */
|
||||||
ImageDataType type;
|
ImageDataType type;
|
||||||
bool is_linear;
|
bool is_linear;
|
||||||
|
|
||||||
|
bool operator==(const ImageMetaData& other) const
|
||||||
|
{
|
||||||
|
return is_float == other.is_float &&
|
||||||
|
is_half == other.is_half &&
|
||||||
|
channels == other.channels &&
|
||||||
|
width == other.width &&
|
||||||
|
height == other.height &&
|
||||||
|
depth == other.depth &&
|
||||||
|
type == other.type &&
|
||||||
|
is_linear == other.is_linear;
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
class ImageManager {
|
class ImageManager {
|
||||||
|
Reference in New Issue
Block a user