We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 7df06d2 + a59759e commit 67f9610Copy full SHA for 67f9610
1 file changed
omp_object.inc
@@ -40,6 +40,21 @@
40
#define MAX_OBJECTS 2000
41
#endif
42
43
+/**
44
+ * <library>omp_object</library>
45
+ */
46
+#if defined MAX_OBJECT_MATERIAL_SLOTS
47
+ #if MAX_OBJECT_MATERIAL_SLOTS < 1 || MAX_OBJECT_MATERIAL_SLOTS > 16
48
+ #error MAX_OBJECT_MATERIAL_SLOTS must be >= 1 and <= 16
49
+ #endif
50
+
51
+ const __MAX_OBJECT_MATERIAL_SLOTS = MAX_OBJECT_MATERIAL_SLOTS;
52
+ #define __MAX_OBJECT_MATERIAL_SLOTS
53
+#else
54
+ const MAX_OBJECT_MATERIAL_SLOTS = 16;
55
+ #define MAX_OBJECT_MATERIAL_SLOTS 16
56
+#endif
57
58
/**
59
* <library>omp_object</library>
60
*/
0 commit comments