From 5ee1acc1eaca2cf38f61b309cb7e26e7168378d4 Mon Sep 17 00:00:00 2001 From: Seth Alves Date: Mon, 18 Jan 2016 12:45:12 -0800 Subject: [PATCH] expose avatar getParentID and setParentID to javascript --- interface/src/avatar/Avatar.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/interface/src/avatar/Avatar.h b/interface/src/avatar/Avatar.h index ddd1c612f1..d8cb73d25c 100644 --- a/interface/src/avatar/Avatar.h +++ b/interface/src/avatar/Avatar.h @@ -167,6 +167,10 @@ public: using SpatiallyNestable::setOrientation; virtual void setOrientation(const glm::quat& orientation) override; + // these just call through to the SpatiallyNestable versions, but they are here to expose these to javascript. + Q_INVOKABLE virtual QUuid getParentID() const { return SpatiallyNestable::getParentID(); } + Q_INVOKABLE virtual void setParentID(const QUuid& parentID) { SpatiallyNestable::setParentID(parentID); } + public slots: // FIXME - these should be migrated to use Pose data instead