Fixed 6DOF set/get check for the path starting with joint_constraints
New code checks whether or not property has joint_constraints as the first part of its path.
(cherry picked from commit 6bf46cf70f
)
This commit is contained in:
parent
7c076fbd0b
commit
158314c0b9
1 changed files with 8 additions and 0 deletions
|
@ -1889,6 +1889,10 @@ bool PhysicalBone::SixDOFJointData::_set(const StringName &p_name, const Variant
|
||||||
|
|
||||||
String path = p_name;
|
String path = p_name;
|
||||||
|
|
||||||
|
if (!path.begins_with("joint_constraints/")) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
Vector3::Axis axis;
|
Vector3::Axis axis;
|
||||||
{
|
{
|
||||||
const String axis_s = path.get_slicec('/', 1);
|
const String axis_s = path.get_slicec('/', 1);
|
||||||
|
@ -2024,6 +2028,10 @@ bool PhysicalBone::SixDOFJointData::_get(const StringName &p_name, Variant &r_re
|
||||||
|
|
||||||
String path = p_name;
|
String path = p_name;
|
||||||
|
|
||||||
|
if (!path.begins_with("joint_constraints/")) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
int axis;
|
int axis;
|
||||||
{
|
{
|
||||||
const String axis_s = path.get_slicec('/', 1);
|
const String axis_s = path.get_slicec('/', 1);
|
||||||
|
|
Loading…
Reference in a new issue