MCPcopy Create free account
hub / github.com/Bloom-Engine/engine / set_cast_shadow

Method set_cast_shadow

native/shared/src/scene.rs:348–355  ·  view source on GitHub ↗
(&mut self, handle: f64, cast: bool)

Source from the content-addressed store, hash-verified

346 }
347
348 pub fn set_cast_shadow(&mut self, handle: f64, cast: bool) {
349 if let Some(node) = self.nodes.get_mut(handle) {
350 if node.visible && node.cast_shadow != cast {
351 self.shadow_version = self.shadow_version.wrapping_add(1);
352 }
353 node.cast_shadow = cast;
354 }
355 }
356
357 pub fn set_receive_shadow(&mut self, handle: f64, receive: bool) {
358 if let Some(node) = self.nodes.get_mut(handle) {

Calls 1

get_mutMethod · 0.80

Tested by

no test coverage detected