diff options
author | Julian Eisel <eiseljulian@gmail.com> | 2018-04-18 01:29:53 +0300 |
---|---|---|
committer | Julian Eisel <eiseljulian@gmail.com> | 2018-04-18 01:29:53 +0300 |
commit | bc9e05599de025dbcaa5cd006c332c9d343d49d1 (patch) | |
tree | 1331f4e05b9913f0367c85ddc053afc97fb92a1e /source | |
parent | a0ef147f29cf2b067fb27b15a1c634d253668e77 (diff) |
Fix makesdna not respecting C++ comments
Tab after C++ comment broke parsing and didn't remove the line at all.
Was there since 2002 at least, probably confused some peeps.
This means commented out code was actually written to SDNA.
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/makesdna/intern/makesdna.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/makesdna/intern/makesdna.c b/source/blender/makesdna/intern/makesdna.c index 92d54e25829..a14ed168b69 100644 --- a/source/blender/makesdna/intern/makesdna.c +++ b/source/blender/makesdna/intern/makesdna.c @@ -464,7 +464,7 @@ static int preprocess_include(char *maindata, int len) if (cp[0] == '/' && cp[1] == '/') { comment = 1; } - else if (*cp < 32) { + else if (*cp == '\n') { comment = 0; } if (comment || *cp < 32 || *cp > 128) *cp = 32; |