summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2022-08-25 00:52:37 +0200
committerRémi Verschelde <rverschelde@gmail.com>2022-08-25 00:52:37 +0200
commitca5c3d6df967d8b9559c3f5e8a1476cc72b72a96 (patch)
treec5fb5a0c499613ab02d0d3d02fc3a35c67512be3
parent9d0b3d7aaa46b5b5fd4d998f7d9d70556eef41d6 (diff)
Fix ParticlesMaterial build after #61238
-rw-r--r--scene/resources/particles_material.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/scene/resources/particles_material.cpp b/scene/resources/particles_material.cpp
index c538b18dff..29a06622a3 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;
}
}