Increase material count limit to 1000.

The texture limit used to be 1000, but when materials with multiple textures were introduced in 3.2.0, the limit was reduced to 100. Since there are model out there that already have more than 100 and fewer than 1000 textures/materials, we should maintain backwards compat.

Fixes #1877

PiperOrigin-RevId: 659901629
Change-Id: If0f6d0500d1d808bc3ec2d87d4a3faf24007da59
This commit is contained in:
Nimrod Gileadi
2024-08-06 04:20:07 -07:00
committed by Copybara-Service
parent 881b777ffd
commit 9db9df7380
4 changed files with 23 additions and 21 deletions
+5 -5
View File
@@ -7967,7 +7967,7 @@ STRUCTS: Mapping[str, StructDecl] = dict([
name='mat_texid',
type=ArrayType(
inner_type=ValueType(name='int'),
extents=(1000,),
extents=(10000,),
),
doc='material texture ids (-1: no texture)',
),
@@ -7975,7 +7975,7 @@ STRUCTS: Mapping[str, StructDecl] = dict([
name='mat_texuniform',
type=ArrayType(
inner_type=ValueType(name='int'),
extents=(100,),
extents=(1000,),
),
doc='texture repetition for 2d mapping',
),
@@ -7983,7 +7983,7 @@ STRUCTS: Mapping[str, StructDecl] = dict([
name='mat_texrepeat',
type=ArrayType(
inner_type=ValueType(name='int'),
extents=(200,),
extents=(2000,),
),
doc='texture repetition for 2d mapping',
),
@@ -7996,7 +7996,7 @@ STRUCTS: Mapping[str, StructDecl] = dict([
name='textureType',
type=ArrayType(
inner_type=ValueType(name='int'),
extents=(100,),
extents=(1000,),
),
doc='type of texture (mjtTexture) (ntexture)',
),
@@ -8004,7 +8004,7 @@ STRUCTS: Mapping[str, StructDecl] = dict([
name='texture',
type=ArrayType(
inner_type=ValueType(name='unsigned int'),
extents=(100,),
extents=(1000,),
),
doc='texture names',
),