Cleanup: deduplicate image user initialization, make consistent.
[blender.git] / source / blender / editors / space_image / space_image.c
index 3160e419393e943f34446c884c6704918f74ab8c..f3ed84b327757cd9f5ec0b566a441c382195edbb 100644 (file)
@@ -188,8 +188,7 @@ static SpaceLink *image_new(const ScrArea *UNUSED(area), const Scene *UNUSED(sce
   simage->lock = true;
   simage->flag = SI_SHOW_GPENCIL | SI_USE_ALPHA | SI_COORDFLOATS;
 
-  simage->iuser.ok = true;
-  simage->iuser.frames = 100;
+  BKE_imageuser_default(&simage->iuser);
   simage->iuser.flag = IMA_SHOW_STEREO | IMA_ANIM_ALWAYS;
 
   scopes_new(&simage->scopes);