赣州市洪水风险预警系统三维版本
guoshilong
2023-02-27 4d8c6dd77427e8e581fda17b6b65ba86bfb7a815
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;