Skip to content

Commit

Permalink
set extensionsUsed in all cases
Browse files Browse the repository at this point in the history
  • Loading branch information
kielnino authored Feb 9, 2024
1 parent d9f77be commit b204a2e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion opendm/gltf.py
Original file line number Diff line number Diff line change
Expand Up @@ -279,9 +279,10 @@ def addBufferView(buf, target=None):
)

gltf.extensionsRequired = ['KHR_materials_unlit']
gltf.extensionsUsed = ['KHR_materials_unlit']

if rtc != (None, None) and len(rtc) >= 2:
gltf.extensionsUsed = ['CESIUM_RTC', 'KHR_materials_unlit']
gltf.extensionsUsed.append('CESIUM_RTC')
gltf.extensions = {
'CESIUM_RTC': {
'center': [float(rtc[0]), float(rtc[1]), 0.0]
Expand Down

0 comments on commit b204a2e

Please sign in to comment.