赣州市洪水风险预警系统三维版本
guoshilong
2023-02-21 8a6a1f340e249ca4e253f52a99a46ef44e7f0f00
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import defined from '../../Core/defined.js'
 
    /**
     * Checks whether the glTF has the given extension.
     *
     * @param {Object} gltf A javascript object containing a glTF asset.
     * @param {String} extension The name of the extension.
     * @returns {Boolean} Whether the glTF has the given extension.
     *
     * @private
     */
    function hasExtension(gltf, extension) {
        return defined(gltf.extensionsUsed) && (gltf.extensionsUsed.indexOf(extension) >= 0);
    }
 
    export default hasExtension;