* 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)
| 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. |
no outgoing calls
no test coverage detected