From bc9e05599de025dbcaa5cd006c332c9d343d49d1 Mon Sep 17 00:00:00 2001 From: Julian Eisel Date: Wed, 18 Apr 2018 00:29:53 +0200 Subject: [PATCH] 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. --- source/blender/makesdna/intern/makesdna.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;