diff options
author | Matt Ebb <matt@mke3.net> | 2010-01-22 07:21:46 +0300 |
---|---|---|
committer | Matt Ebb <matt@mke3.net> | 2010-01-22 07:21:46 +0300 |
commit | 96b5658d0cd33b02cb6668670b7706b8897c0460 (patch) | |
tree | 2f1ae90734eb57b9001238418a549c3b418d75ae /source/blender/blenloader | |
parent | 0db45111ce9c504894e0a88dae5f78c03196d233 (diff) |
Fix [#20756] Texture painting on 3D tends to forget textures in the new texture menu.
Part of this fix (loading files with brushes/textures) will only apply for new files saved after this commit
Diffstat (limited to 'source/blender/blenloader')
-rw-r--r-- | source/blender/blenloader/intern/readfile.c | 11 | ||||
-rw-r--r-- | source/blender/blenloader/intern/writefile.c | 2 |
2 files changed, 10 insertions, 3 deletions
diff --git a/source/blender/blenloader/intern/readfile.c b/source/blender/blenloader/intern/readfile.c index c8bcc43086e..7ba17ced089 100644 --- a/source/blender/blenloader/intern/readfile.c +++ b/source/blender/blenloader/intern/readfile.c @@ -10373,9 +10373,8 @@ static void do_versions(FileData *fd, Library *lib, Main *main) } } - /* put 2.50 compatibility code here until next subversion bump */ - - if (1) { + if (main->versionfile < 250 || (main->versionfile == 250 && main->subversionfile < 12)) + { Scene *sce; Object *ob; Brush *brush; @@ -10475,6 +10474,12 @@ static void do_versions(FileData *fd, Library *lib, Main *main) } } + + + /* put 2.50 compatibility code here until next subversion bump */ + if (1) { + ; + } /* WATCH IT!!!: pointers from libdata have not been converted yet here! */ /* WATCH IT 2!: Userdef struct init has to be in src/usiblender.c! */ diff --git a/source/blender/blenloader/intern/writefile.c b/source/blender/blenloader/intern/writefile.c index 8673d847f73..f8e1523d5ce 100644 --- a/source/blender/blenloader/intern/writefile.c +++ b/source/blender/blenloader/intern/writefile.c @@ -2324,6 +2324,8 @@ static void write_brushes(WriteData *wd, ListBase *idbase) writestruct(wd, ID_BR, "Brush", 1, brush); if (brush->id.properties) IDP_WriteProperty(brush->id.properties, wd); + writestruct(wd, DATA, "MTex", 1, &brush->mtex); + if(brush->curve) write_curvemapping(wd, brush->curve); } |