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:
authorJoshua Leung <aligorith@gmail.com>2016-03-26 08:01:02 +0300
committerJoshua Leung <aligorith@gmail.com>2016-03-26 08:02:02 +0300
commit5759e335c3462b9d705b68be18d621364af18688 (patch)
tree44bab6286d7ce6630405e1cc41e978efc6cbbef5 /source/blender/makesdna
parent0512e20ae9939f4a688f4f485acdf246dc4d7682 (diff)
Driver Variable Name Validation: Added missing check for zero-length (i.e. "blank") names
Diffstat (limited to 'source/blender/makesdna')
-rw-r--r--source/blender/makesdna/DNA_anim_types.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/source/blender/makesdna/DNA_anim_types.h b/source/blender/makesdna/DNA_anim_types.h
index c8ba61db87e..55998ba6e9f 100644
--- a/source/blender/makesdna/DNA_anim_types.h
+++ b/source/blender/makesdna/DNA_anim_types.h
@@ -376,6 +376,8 @@ typedef enum eDriverVar_Flags {
DVAR_FLAG_INVALID_HAS_SPECIAL = (1 << 6),
/* name is a reserved keyword */
DVAR_FLAG_INVALID_PY_KEYWORD = (1 << 7),
+ /* name is zero-length */
+ DVAR_FLAG_INVALID_EMPTY = (1 << 8),
} eDriverVar_Flags;
/* All invalid dvar name flags */
@@ -386,7 +388,8 @@ typedef enum eDriverVar_Flags {
DVAR_FLAG_INVALID_HAS_SPACE | \
DVAR_FLAG_INVALID_HAS_DOT | \
DVAR_FLAG_INVALID_HAS_SPECIAL | \
- DVAR_FLAG_INVALID_PY_KEYWORD \
+ DVAR_FLAG_INVALID_PY_KEYWORD | \
+ DVAR_FLAG_INVALID_EMPTY \
)
/* --- */