Convert light directional boolean into a type enum.

PiperOrigin-RevId: 761983728
Change-Id: Id5bf93c103e5358d9c5cd9f1176532a978e0b3a8
This commit is contained in:
Google DeepMind
2025-05-22 08:50:23 -07:00
committed by Copybara-Service
parent 373b4c0437
commit 74cc904edc
21 changed files with 130 additions and 49 deletions
+11 -11
View File
@@ -2220,11 +2220,11 @@ STRUCTS: Mapping[str, StructDecl] = dict([
array_extent=('nlight',),
),
StructFieldDecl(
name='light_directional',
name='light_type',
type=PointerType(
inner_type=ValueType(name='mjtByte'),
inner_type=ValueType(name='int'),
),
doc='directional light',
doc='spot, directional, etc. (mjtLightType)',
array_extent=('nlight',),
),
StructFieldDecl(
@@ -6697,6 +6697,11 @@ STRUCTS: Mapping[str, StructDecl] = dict([
),
doc='direction rel. to body frame',
),
StructFieldDecl(
name='type',
type=ValueType(name='int'),
doc='type (mjtLightType)',
),
StructFieldDecl(
name='attenuation',
type=ArrayType(
@@ -6744,11 +6749,6 @@ STRUCTS: Mapping[str, StructDecl] = dict([
type=ValueType(name='mjtByte'),
doc='headlight',
),
StructFieldDecl(
name='directional',
type=ValueType(name='mjtByte'),
doc='directional light',
),
StructFieldDecl(
name='castshadow',
type=ValueType(name='mjtByte'),
@@ -8992,9 +8992,9 @@ STRUCTS: Mapping[str, StructDecl] = dict([
doc='is light active',
),
StructFieldDecl(
name='directional',
type=ValueType(name='mjtByte'),
doc='is light directional or spot',
name='type',
type=ValueType(name='mjtLightType'),
doc='type of light',
),
StructFieldDecl(
name='castshadow',