Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrecht Van Lommel <brechtvanlommel@gmail.com>2016-02-21 00:36:02 +0300
committerBrecht Van Lommel <brechtvanlommel@gmail.com>2019-04-18 20:42:19 +0300
commit0a4cded91eeda7a08611d9f894ce29086663bfa8 (patch)
tree84b1fec33dfa9cd80ebe9772c2707d3de6473ad4 /source/blender/editors
parent4dce18fb51f17269161d1c2a16571502b97a860b (diff)
Cleanup: deduplicate image user initialization, make consistent.
Diffstat (limited to 'source/blender/editors')
-rw-r--r--source/blender/editors/space_image/space_image.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/source/blender/editors/space_image/space_image.c b/source/blender/editors/space_image/space_image.c
index 3160e419393..f3ed84b3277 100644
--- a/source/blender/editors/space_image/space_image.c
+++ b/source/blender/editors/space_image/space_image.c
@@ -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);