Merge pull request #45267 from HipsterPenguin/BugFixing

Fixed 6DOF set/get check for the path starting with joint_constraints
This commit is contained in:
Rémi Verschelde 2021-01-20 17:51:08 +01:00 committed by GitHub
commit b23f1a8d3e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1716,6 +1716,10 @@ bool PhysicalBone3D::SixDOFJointData::_set(const StringName &p_name, const Varia
String path = p_name;
if (!path.begins_with("joint_constraints/")) {
return false;
}
Vector3::Axis axis;
{
const String axis_s = path.get_slicec('/', 1);
@ -1872,6 +1876,10 @@ bool PhysicalBone3D::SixDOFJointData::_get(const StringName &p_name, Variant &r_
String path = p_name;
if (!path.begins_with("joint_constraints/")) {
return false;
}
int axis;
{
const String axis_s = path.get_slicec('/', 1);