Cleanup: deduplicate image user initialization, make consistent.
[blender.git] / source / blender / nodes / shader / nodes / node_shader_tex_environment.c
index 6e8516b9886474cbb828ae7e9bcf9af67675c922..0105bea9550c6edda4129e9e34d90f95bcd860b9 100644 (file)
@@ -48,9 +48,7 @@ static void node_shader_init_tex_environment(bNodeTree *UNUSED(ntree), bNode *no
   BKE_texture_colormapping_default(&tex->base.color_mapping);
   tex->color_space = SHD_COLORSPACE_COLOR;
   tex->projection = SHD_PROJ_EQUIRECTANGULAR;
-  tex->iuser.frames = 1;
-  tex->iuser.sfra = 1;
-  tex->iuser.ok = 1;
+  BKE_imageuser_default(&tex->iuser);
 
   node->storage = tex;
 }