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:
authorJulian Eisel <eiseljulian@gmail.com>2018-04-18 01:29:53 +0300
committerJulian Eisel <eiseljulian@gmail.com>2018-04-18 01:29:53 +0300
commitbc9e05599de025dbcaa5cd006c332c9d343d49d1 (patch)
tree1331f4e05b9913f0367c85ddc053afc97fb92a1e /source/blender/makesdna/intern
parenta0ef147f29cf2b067fb27b15a1c634d253668e77 (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/blender/makesdna/intern')
-rw-r--r--source/blender/makesdna/intern/makesdna.c2
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;