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:
Diffstat (limited to 'source/blender/editors/util/ed_util.c')
-rw-r--r--source/blender/editors/util/ed_util.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/editors/util/ed_util.c b/source/blender/editors/util/ed_util.c
index b0a2a24f25b..23d6b0a075e 100644
--- a/source/blender/editors/util/ed_util.c
+++ b/source/blender/editors/util/ed_util.c
@@ -89,7 +89,9 @@ void ED_editors_init(bContext *C)
}
/* image editor paint mode */
- ED_space_image_paint_update(wm, sce->toolsettings);
+ if (sce) {
+ ED_space_image_paint_update(wm, sce->toolsettings);
+ }
}
/* frees all editmode stuff */