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:
authorMatt Ebb <matt@mke3.net>2010-03-09 10:41:27 +0300
committerMatt Ebb <matt@mke3.net>2010-03-09 10:41:27 +0300
commitec303cf980a696fa374dad3b1cdfd6440ed7f846 (patch)
tree578a4dfbf7f86ad49982c257276c6bab2592db1a /source/blender/blenloader
parentd4756d395bde04dc6cfeed696df1c38211ffbff9 (diff)
Fix [#21188] HueCorrection Node, when reseting Curve, it goes to a incline instead of flat/straight
Diffstat (limited to 'source/blender/blenloader')
-rw-r--r--source/blender/blenloader/intern/readfile.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/blenloader/intern/readfile.c b/source/blender/blenloader/intern/readfile.c
index fbde733f717..b80e3df717c 100644
--- a/source/blender/blenloader/intern/readfile.c
+++ b/source/blender/blenloader/intern/readfile.c
@@ -10647,6 +10647,11 @@ static void do_versions(FileData *fd, Library *lib, Main *main)
/* put 2.50 compatibility code here until next subversion bump */
{
+ Brush *brush;
+
+ for (brush= main->brush.first; brush; brush= brush->id.next) {
+ if (brush->curve) brush->curve->preset = CURVE_PRESET_SMOOTH;
+ }
}
/* WATCH IT!!!: pointers from libdata have not been converted yet here! */