Browse Source

Fix component naming

sebastien 7 năm trước cách đây
mục cha
commit
fa1e27a315
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/Rendering/babylon.geometryBufferRenderer.ts

+ 1 - 1
src/Rendering/babylon.geometryBufferRenderer.ts

@@ -68,7 +68,7 @@ module BABYLON {
             this._ratio = ratio;
 
             // Register the G Buffer component to the scene.
-            let component = scene._getComponent(SceneComponentConstants.NAME_GEOMETRYBUFFER) as GeometryBufferRendererSceneComponent;
+            let component = scene._getComponent(SceneComponentConstants.NAME_GEOMETRYBUFFERRENDERER) as GeometryBufferRendererSceneComponent;
             if (!component) {
                 component = new GeometryBufferRendererSceneComponent(scene);
                 scene._addComponent(component);