Merge branch 'master' into blender2.8
[blender.git] / source / blender / makesdna / intern / makesdna.c
index 92d54e258295a117a1417c02db212144ea627a86..f0f1c2210f037c270a819ebd0789e69277321649 100644 (file)
@@ -130,6 +130,10 @@ static const char *includefiles[] = {
        "DNA_freestyle_types.h",
        "DNA_linestyle_types.h",
        "DNA_cachefile_types.h",
+       "DNA_layer_types.h",
+       "DNA_workspace_types.h",
+       "DNA_lightprobe_types.h",
+
        /* see comment above before editing! */
 
        /* empty string to indicate end of includefiles */
@@ -504,6 +508,17 @@ static int preprocess_include(char *maindata, int len)
                        a -= 13;
                        cp += 13;
                }
+               else if (strncmp("DNA_PRIVATE_WORKSPACE", cp, 21) == 0) {
+                       /* Check for DNA_PRIVATE_WORKSPACE_READ_WRITE */
+                       if (strncmp("_READ_WRITE", cp + 21, 11) == 0) {
+                               a -= 31;
+                               cp += 31;
+                       }
+                       else {
+                               a -= 20;
+                               cp += 20;
+                       }
+               }
                else {
                        md[0] = cp[0];
                        md++;
@@ -1342,4 +1357,8 @@ int main(int argc, char **argv)
 #include "DNA_freestyle_types.h"
 #include "DNA_linestyle_types.h"
 #include "DNA_cachefile_types.h"
+#include "DNA_layer_types.h"
+#include "DNA_workspace_types.h"
+#include "DNA_lightprobe_types.h"
+
 /* end of list */