angular-three 4.0.0-next.3 → 4.0.0-next.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -2243,7 +2243,6 @@ class NgtRenderer2 {
|
|
|
2243
2243
|
}
|
|
2244
2244
|
const threeName = kebabToPascal(name.startsWith('ngt-') ? name.slice(4) : name);
|
|
2245
2245
|
const threeTarget = this.catalogue[threeName];
|
|
2246
|
-
//
|
|
2247
2246
|
if (threeTarget) {
|
|
2248
2247
|
const threeInstance = prepare(new threeTarget(...injectedArgs), name);
|
|
2249
2248
|
const rendererNode = createRendererNode('three', threeInstance, this.document);
|
|
@@ -2251,7 +2250,7 @@ class NgtRenderer2 {
|
|
|
2251
2250
|
const instanceState = getInstanceState(threeInstance);
|
|
2252
2251
|
// auto-attach for geometry and material
|
|
2253
2252
|
if (is.three(threeInstance, 'isBufferGeometry')) {
|
|
2254
|
-
|
|
2253
|
+
instanceState.attach = ['geometry'];
|
|
2255
2254
|
}
|
|
2256
2255
|
else if (is.three(threeInstance, 'isMaterial')) {
|
|
2257
2256
|
instanceState.attach = ['material'];
|