Convert light directional boolean into a type enum.
PiperOrigin-RevId: 761983728 Change-Id: Id5bf93c103e5358d9c5cd9f1176532a978e0b3a8
This commit is contained in:
committed by
Copybara-Service
parent
373b4c0437
commit
74cc904edc
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user