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@pandora.be>2012-08-31 17:04:03 +0400
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2012-08-31 17:04:03 +0400
commit6b2aa6f863cfcc60ba90cf6accd7a302c4133ff3 (patch)
tree91159431acda24e64ba0107edb0cceeebd190484 /source/blender/editors/util
parent533192013fe8983d7e2b6d6b2b58dfe87d2b319a (diff)
Fix #32408: image editor does not show paint brush circle on loading a .blend
file that has paint mode enabled.
Diffstat (limited to 'source/blender/editors/util')
-rw-r--r--source/blender/editors/util/ed_util.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/editors/util/ed_util.c b/source/blender/editors/util/ed_util.c
index 6d9f2732d8a..1f34793a972 100644
--- a/source/blender/editors/util/ed_util.c
+++ b/source/blender/editors/util/ed_util.c
@@ -49,6 +49,7 @@
#include "BKE_packedFile.h"
#include "ED_armature.h"
+#include "ED_image.h"
#include "ED_mesh.h"
#include "ED_object.h"
#include "ED_sculpt.h"
@@ -67,6 +68,7 @@
void ED_editors_init(bContext *C)
{
+ wmWindowManager *wm = CTX_wm_manager(C);
Main *bmain = CTX_data_main(C);
Scene *sce = CTX_data_scene(C);
Object *ob, *obact = (sce && sce->basact) ? sce->basact->object : NULL;
@@ -86,6 +88,9 @@ void ED_editors_init(bContext *C)
ED_object_toggle_modes(C, mode);
}
}
+
+ /* image editor paint mode */
+ ED_space_image_paint_update(wm, sce->toolsettings);
}
/* frees all editmode stuff */