Add clearLocalLights method to ViewportHost
This commit is contained in:
@@ -872,6 +872,14 @@ export class ViewportHost {
|
|||||||
return texture;
|
return texture;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private clearLocalLights() {
|
||||||
|
for (const renderObjects of this.localLightRenderObjects.values()) {
|
||||||
|
this.localLightGroup.remove(renderObjects.group);
|
||||||
|
}
|
||||||
|
|
||||||
|
this.localLightRenderObjects.clear();
|
||||||
|
}
|
||||||
|
|
||||||
private clearBrushMeshes() {
|
private clearBrushMeshes() {
|
||||||
for (const renderObjects of this.brushRenderObjects.values()) {
|
for (const renderObjects of this.brushRenderObjects.values()) {
|
||||||
this.brushGroup.remove(renderObjects.mesh);
|
this.brushGroup.remove(renderObjects.mesh);
|
||||||
|
|||||||
Reference in New Issue
Block a user