Page MenuHome
Paste P1261

Possible fix for T73611
ActivePublic

Authored by Julian Eisel (Severin) on Feb 18 2020, 5:06 PM.
diff --git a/source/blender/blenkernel/intern/scene.c b/source/blender/blenkernel/intern/scene.c
index fd1f030c3d3..d5a903c0fe5 100644
--- a/source/blender/blenkernel/intern/scene.c
+++ b/source/blender/blenkernel/intern/scene.c
@@ -69,6 +69,7 @@
#include "BKE_fcurve.h"
#include "BKE_freestyle.h"
#include "BKE_gpencil.h"
+#include "BKE_global.h"
#include "BKE_icons.h"
#include "BKE_idprop.h"
#include "BKE_image.h"
@@ -676,6 +677,10 @@ void BKE_scene_init(Scene *sce)
BKE_color_managed_view_settings_init_render(
&sce->r.bake.im_format.view_settings, &sce->r.bake.im_format.display_settings, "Filmic");
+ /* Initialize texture painting for this scene.
+ * We could lazy-initialize, but that would be visible in the UI, see T73611. */
+ BKE_paint_init(G_MAIN, sce, PAINT_MODE_TEXTURE_3D, PAINT_CURSOR_TEXTURE_PAINT);
+
/* GP Sculpt brushes */
{
GP_Sculpt_Settings *gset = &sce->toolsettings->gp_sculpt;