Skip to content
This repository has been archived by the owner on Feb 10, 2023. It is now read-only.

Commit

Permalink
fix(core): update controllers generator to reflect manual changes
Browse files Browse the repository at this point in the history
  • Loading branch information
nartc committed Dec 3, 2021
1 parent 53d0187 commit 0b855ee
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import {
} from '@angular/core';
import * as THREE from 'three';
import { AnyConstructor, AnyExtenderFunction, UnknownRecord } from '../models';
import { NGT_OBJECT_POST_INIT, NGT_OBJECT_TYPE } from '../tokens';
import {
NGT_CONTENT_GEOMETRY_CONTROLLER_PROVIDER,
NGT_CONTENT_GEOMETRY_WATCHED_CONTROLLER,
Expand Down Expand Up @@ -136,13 +137,3 @@ export const [
watchedControllerTokenName: 'Watched MaterialGeometryController',
controller: NgtMaterialGeometryController,
});

export const NGT_OBJECT_TYPE = new InjectionToken('Object3d Type', {
providedIn: 'root',
factory: () => THREE.Object3D,
});

export const NGT_OBJECT_POST_INIT = new InjectionToken('Object3d PostInit', {
providedIn: 'root',
factory: () => undefined,
});
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ export class NgtObject3dController extends Controller implements OnDestroy {
private objectInputsController: NgtObject3dInputsController,
@Inject(NGT_ANIMATION_SUBSCRIBER_WATCHED_CONTROLLER)
private animationSubscriberController: NgtAnimationSubscriberController,
@Optional() @SkipSelf() private parentObject3d: NgtObject3dController | null
@Optional() @SkipSelf() private parentObject3d: NgtObject3dController
) {
super(ngZone);

Expand Down

0 comments on commit 0b855ee

Please sign in to comment.