Skip to content

Commit

Permalink
Merge pull request #1746 from kielnino/set-extensionsused
Browse files Browse the repository at this point in the history
GLTF - obj2glb - Set extensionsUsed in all cases to be consistent with the GLTF standard
  • Loading branch information
pierotofy authored Feb 9, 2024
2 parents d9f77be + b204a2e commit fc9c948
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 fc9c948

Please sign in to comment.