From c4faccd04eac8ec4166bedf0808c9b6c433bd570 Mon Sep 17 00:00:00 2001 From: Brian Peiris Date: Fri, 23 Feb 2018 10:53:35 -0800 Subject: [PATCH] Update to a newer a-frame that includes a fix for three.js culling issue --- src/assets/README.md | 2 +- src/assets/aframe.js | 5364 ++++++++++++++++++++++-------------------- 2 files changed, 2781 insertions(+), 2585 deletions(-) diff --git a/src/assets/README.md b/src/assets/README.md index f5d48d2952..2d889d3957 100644 --- a/src/assets/README.md +++ b/src/assets/README.md @@ -1 +1 @@ -- aframe.js from https://cdn.rawgit.com/brianpeiris/aframe/331af1fb0035c7f612a055056669d48ebde124dd/dist/aframe-master.js +- aframe.js from https://github.com/brianpeiris/aframe/raw/r90fix-culling/dist/aframe-master.js diff --git a/src/assets/aframe.js b/src/assets/aframe.js index b963aaadf8..2f5fe169f5 100644 --- a/src/assets/aframe.js +++ b/src/assets/aframe.js @@ -1,4 +1,4 @@ -(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.AFRAME = f()}})(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o tag with optional data attributes + createLink: function(href, attributes) { + var head = document.head || document.getElementsByTagName('head')[0]; + var link = document.createElement('link'); + + link.href = href; + link.rel = 'stylesheet'; + + for (var key in attributes) { + if ( ! attributes.hasOwnProperty(key)) { + continue; + } + var value = attributes[key]; + link.setAttribute('data-' + key, value); + } + + head.appendChild(link); + }, + // Create a