mirror of
https://github.com/unanmed/HumanBreak.git
synced 2025-01-19 12:49:25 +08:00
fix: 渲染元素id重复的logger
This commit is contained in:
parent
7fbdb26e6f
commit
6f5755b8cd
@ -166,7 +166,7 @@ export abstract class RenderItem<E extends ERenderItemEvent = ERenderItemEvent>
|
||||
set id(v: string) {
|
||||
if (this.isRoot || this.findRoot()) {
|
||||
if (RenderItem.itemMap.has(this._id)) {
|
||||
logger.warn(23);
|
||||
logger.warn(23, this._id);
|
||||
RenderItem.itemMap.delete(this._id);
|
||||
}
|
||||
RenderItem.itemMap.set(v, this);
|
||||
|
@ -47,7 +47,7 @@
|
||||
"20": "Cannot apply animation to camera operation that does not belong to it.",
|
||||
"21": "Cannot apply transition to camera operation that does not belong to it.",
|
||||
"22": "There is already an active camera for delivered render item. Consider using 'Camera.for' or diable the active camera to avoid some exceptions.",
|
||||
"23": "Render item with id of '$1' has already exists.",
|
||||
"23": "Render item with id of '$1' has already exists. Please avoid repeat id since it may cause issues when use 'getElementById'.",
|
||||
"24": "Uniform block can only be used in glsl version es 300.",
|
||||
"25": "Cannot activate weather since there's no weather with id of '$1'.",
|
||||
"26": "Cannot set attribute when only element number specified. Use 'pointer' or 'pointerI' instead.",
|
||||
|
Loading…
Reference in New Issue
Block a user