Some code changed with Clang-Tidy
This commit is contained in:
parent
5c66771e3e
commit
4e5310cc60
175 changed files with 467 additions and 674 deletions
|
|
@ -3387,11 +3387,7 @@ void VisualServerScene::_update_dirty_instance(Instance *p_instance) {
|
|||
|
||||
RID mat = VSG::storage->immediate_get_material(p_instance->base);
|
||||
|
||||
if (!mat.is_valid() || VSG::storage->material_casts_shadows(mat)) {
|
||||
can_cast_shadows = true;
|
||||
} else {
|
||||
can_cast_shadows = false;
|
||||
}
|
||||
can_cast_shadows = !mat.is_valid() || VSG::storage->material_casts_shadows(mat);
|
||||
|
||||
if (mat.is_valid() && VSG::storage->material_is_animated(mat)) {
|
||||
is_animated = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue