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:
authorDalai Felinto <dfelinto@gmail.com>2019-01-02 14:34:41 +0300
committerDalai Felinto <dfelinto@gmail.com>2019-01-04 14:55:47 +0300
commit4d8ed937f226f4cdfa6f62fde5306b14c217e9c5 (patch)
treec45df53cdff86a9fe02358b9d469903c3b9e644d /source/blender/blenloader/intern
parent7bd31bdccefd7783dda93e5c86e55f91ea3ea50d (diff)
Fix T60044: Sculpting brush is not visible on file load
The original issue is that wm->paintcursors is empty until we go in and out of the sculpt mode. To fix this we need to toggle inside the sculpt mode. This is usually tackled by ED_editors_init(), however the sculpt mode toggling was never call because the object technically had "mode data". Reviewers: campbellbarton Differential Revision: https://developer.blender.org/D4153
Diffstat (limited to 'source/blender/blenloader/intern')
-rw-r--r--source/blender/blenloader/intern/readfile.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/source/blender/blenloader/intern/readfile.c b/source/blender/blenloader/intern/readfile.c
index ebd8d2bd06b..bcf480c1e9f 100644
--- a/source/blender/blenloader/intern/readfile.c
+++ b/source/blender/blenloader/intern/readfile.c
@@ -5645,15 +5645,7 @@ static void direct_link_object(FileData *fd, Object *ob)
/* in case this value changes in future, clamp else we get undefined behavior */
CLAMP(ob->rotmode, ROT_MODE_MIN, ROT_MODE_MAX);
- if (ob->sculpt) {
- if (ob->mode & OB_MODE_ALL_SCULPT) {
- ob->sculpt = MEM_callocN(sizeof(SculptSession), "reload sculpt session");
- ob->sculpt->mode_type = ob->mode;
- }
- else {
- ob->sculpt = NULL;
- }
- }
+ ob->sculpt = NULL;
link_list(fd, &ob->lodlevels);
ob->currentlod = ob->lodlevels.first;