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:
committed by
Copybara-Service
parent
881b777ffd
commit
9db9df7380
@@ -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',
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user