Skip to content

Commit a59759e

Browse files
authored
omp_object.inc: Add MAX_OBJECT_MATERIAL_SLOTS define
1 parent f3bff01 commit a59759e

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

omp_object.inc

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,21 @@
4040
#define MAX_OBJECTS 2000
4141
#endif
4242

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+
4358
/**
4459
* <library>omp_object</library>
4560
*/

0 commit comments

Comments
 (0)