This commit is contained in:
griffpatch 2017-02-14 08:30:07 +00:00
parent fea7643e7e
commit 100625c6d7

View File

@ -742,6 +742,7 @@ class RenderWebGL extends EventEmitter {
* @param {object} position - An object with x & y members to be fenced
* - These values are updated in the object to become fenced
*/
fencePositionOfDrawable (drawableID, position) {
const drawable = this._allDrawables[drawableID];
if (!drawable) {
// TODO: fix whatever's wrong in the VM which causes this, then add a warning or throw here.