diff --git a/scene/resources/particles_material.cpp b/scene/resources/particles_material.cpp index c538b18dfff..29a06622a3d 100644 --- a/scene/resources/particles_material.cpp +++ b/scene/resources/particles_material.cpp @@ -1451,12 +1451,12 @@ void ParticlesMaterial::_validate_property(PropertyInfo &p_property) const { } } - if (property.name == "collision_friction" && collision_mode != COLLISION_RIGID) { - property.usage = PROPERTY_USAGE_NONE; + if (p_property.name == "collision_friction" && collision_mode != COLLISION_RIGID) { + p_property.usage = PROPERTY_USAGE_NONE; } - if (property.name == "collision_bounce" && collision_mode != COLLISION_RIGID) { - property.usage = PROPERTY_USAGE_NONE; + if (p_property.name == "collision_bounce" && collision_mode != COLLISION_RIGID) { + p_property.usage = PROPERTY_USAGE_NONE; } }