Fix #32796: cycles did not support image auto refresh option.

This commit is contained in:
Brecht Van Lommel
2012-11-21 13:00:51 +00:00
parent fde8b0f7bc
commit 90cdf34f56
6 changed files with 58 additions and 19 deletions

View File

@@ -51,7 +51,7 @@ public:
ImageManager();
~ImageManager();
int add_image(const string& filename, bool& is_float);
int add_image(const string& filename, bool animated, bool& is_float);
void remove_image(const string& filename);
bool is_float_image(const string& filename);
@@ -60,8 +60,8 @@ public:
void set_osl_texture_system(void *texture_system);
void set_pack_images(bool pack_images_);
void set_extended_image_limits(void);
bool set_animation_frame_update(int frame);
bool need_update;
@@ -70,11 +70,13 @@ private:
int tex_num_float_images;
int tex_image_byte_start;
thread_mutex device_mutex;
int animation_frame;
struct Image {
string filename;
bool need_load;
bool animated;
int users;
};