Use the correct context when re-using a cached NodePath (#12331)

This commit is contained in:
Nicolò Ribaudo
2020-11-10 15:03:21 +01:00
committed by GitHub
parent ddd868f838
commit 2984f0cb88
7 changed files with 40 additions and 4 deletions

View File

@@ -0,0 +1,5 @@
let Vec3;
export class Light {
_color = Vec3;
}

View File

@@ -0,0 +1,6 @@
{
"plugins": [
"transform-modules-systemjs",
"proposal-class-properties"
]
}

View File

@@ -0,0 +1,21 @@
System.register([], function (_export, _context) {
"use strict";
var Light, Vec3;
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
_export("Light", void 0);
return {
setters: [],
execute: function () {
_export("Light", Light = class Light {
constructor() {
_defineProperty(this, "_color", Vec3);
}
});
}
};
});