diff options
author | Joshua Leung <aligorith@gmail.com> | 2016-03-24 03:02:22 +0300 |
---|---|---|
committer | Joshua Leung <aligorith@gmail.com> | 2016-03-24 03:02:22 +0300 |
commit | 322f86d6b330ebeb1da5c1f527714745dc901460 (patch) | |
tree | e74bd30c889c44200f68dedaf2fc415e4c886978 /source/blender/makesdna | |
parent | c1095c7a9f1c96a5bb249bed8e465e653a54a4dc (diff) |
Fix T47896: Scripted Expression string length limit is too short for some autogenerated expressions
While most scripted expressions are quite short (e.g. "var" or "frame + 1"),
those that are autogenerated by scripts (to take into account a wide range of factors)
may require a bit more headroom to operate in.
By doubling the maximum length here, we now make it possible to combine up to 38
3-letter variables in some linear combination (with all factors expressed to 4 dp).
That should be more than enough for anyone or anything for quite a while!
Unfortunately, this does increase memory consumption for drivers across the board.
Diffstat (limited to 'source/blender/makesdna')
-rw-r--r-- | source/blender/makesdna/DNA_anim_types.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/makesdna/DNA_anim_types.h b/source/blender/makesdna/DNA_anim_types.h index e41ca93bdec..d80b50945df 100644 --- a/source/blender/makesdna/DNA_anim_types.h +++ b/source/blender/makesdna/DNA_anim_types.h @@ -374,7 +374,7 @@ typedef struct ChannelDriver { /* python expression to execute (may call functions defined in an accessory file) * which relates the target 'variables' in some way to yield a single usable value */ - char expression[256]; /* expression to compile for evaluation */ + char expression[512]; /* expression to compile for evaluation */ void *expr_comp; /* PyObject - compiled expression, don't save this */ float curval; /* result of previous evaluation */ |