Skip to content

Commit

Permalink
fix eslint warnning
Browse files Browse the repository at this point in the history
  • Loading branch information
stanleyljl committed Oct 8, 2023
1 parent feb3c36 commit 5f3d278
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
5 changes: 4 additions & 1 deletion cocos/scene-graph/scene.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,11 +129,13 @@ export class Scene extends Node {
/**
* @deprecated since v3.5.0, this is an engine private interface that will be removed in the future.
*/
// eslint-disable-next-line @typescript-eslint/no-empty-function
public _onHierarchyChanged (): void { }

/**
* @deprecated since v3.5.0, this is an engine private interface that will be removed in the future.
*/
// eslint-disable-next-line @typescript-eslint/no-empty-function
public _onPostActivated (active: boolean): void {

}
Expand All @@ -155,10 +157,11 @@ export class Scene extends Node {
* @zh
* 参考 [[Node.updateWorldTransform]]
*/
// eslint-disable-next-line @typescript-eslint/no-empty-function
public updateWorldTransform (): void {}

// life-cycle call backs

// eslint-disable-next-line @typescript-eslint/no-empty-function
protected _instantiate (): void { }

/**
Expand Down
3 changes: 0 additions & 3 deletions native/cocos/renderer/pipeline/custom/NativeRenderGraph.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -773,9 +773,6 @@ void NativeRenderQueueBuilder::addGpuDrivenResource(const scene::Camera *camera,
ccstd::pmr::string drawInstanceBuffer("CCDrawInstanceBuffer");
drawInstanceBuffer.append(std::to_string(cullingID));

const auto objectNameID = layoutGraph->attributeIndex.at("CCObjectBuffer");
data.bufferNames[objectNameID.value] = objectBuffer;

const auto instanceNameID = layoutGraph->attributeIndex.at("CCDrawInstanceBuffer");
data.bufferNames[instanceNameID.value] = drawInstanceBuffer;

Expand Down

0 comments on commit 5f3d278

Please sign in to comment.