mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 04:44:11 +02:00
Simplify getting nestable pointer in BaseNestableTransformNode::toVariantMap
This commit is contained in:
parent
f188a3589e
commit
27cf080ad6
1 changed files with 6 additions and 8 deletions
|
@ -49,14 +49,12 @@ public:
|
|||
|
||||
QVariantMap toVariantMap() const {
|
||||
QVariantMap map;
|
||||
|
||||
if (!_spatiallyNestable.expired()) {
|
||||
auto nestable = _spatiallyNestable.lock();
|
||||
if (nestable) {
|
||||
map["parentID"] = nestable->getID();
|
||||
map["parentJointIndex"] = _jointIndex;
|
||||
map["baseParentScale"] = vec3toVariant(_baseScale);
|
||||
}
|
||||
|
||||
auto nestable = _spatiallyNestable.lock();
|
||||
if (nestable) {
|
||||
map["parentID"] = nestable->getID();
|
||||
map["parentJointIndex"] = _jointIndex;
|
||||
map["baseParentScale"] = vec3toVariant(_baseScale);
|
||||
}
|
||||
|
||||
return map;
|
||||
|
|
Loading…
Reference in a new issue