MCPcopy Create free account
hub / github.com/pmndrs/postprocessing / delete

Method delete

src/core/Selection.js:225–235  ·  view source on GitHub ↗

* Removes an object from this selection. * * @param {Object3D} object - The object that should be deselected. * @return {Boolean} Returns true if an object has successfully been removed from this selection; otherwise false.

(object)

Source from the content-addressed store, hash-verified

223 */
224
225 delete(object) {
226
227 if(this.has(object)) {
228
229 object.layers.disable(this.layer);
230
231 }
232
233 return super.delete(object);
234
235 }
236
237 /**
238 * Removes an existing object from the selection. If the object doesn't exist it's added instead.

Callers 15

toggleMethod · 0.95
colorMethod · 0.80
invertedMethod · 0.80
textureMethod · 0.80
aspectCorrectionMethod · 0.80
depthAwareUpsamplingMethod · 0.80
colorMethod · 0.80
constructorMethod · 0.80
xRayMethod · 0.80
patternTextureMethod · 0.80
deselectObjectMethod · 0.80
radialModulationMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected