mirror of
https://github.com/overte-org/overte.git
synced 2025-08-06 19:59:28 +02:00
Merge pull request #9486 from huffman/fix/overlay-parent-reg-point
Fix Overlay-as-child of model entity with reg point
This commit is contained in:
commit
0c9e42e2d9
1 changed files with 3 additions and 1 deletions
|
@ -26,6 +26,8 @@ using SpatiallyNestableWeakConstPointer = std::weak_ptr<const SpatiallyNestable>
|
||||||
using SpatiallyNestablePointer = std::shared_ptr<SpatiallyNestable>;
|
using SpatiallyNestablePointer = std::shared_ptr<SpatiallyNestable>;
|
||||||
using SpatiallyNestableConstPointer = std::shared_ptr<const SpatiallyNestable>;
|
using SpatiallyNestableConstPointer = std::shared_ptr<const SpatiallyNestable>;
|
||||||
|
|
||||||
|
static const uint16_t INVALID_JOINT_INDEX = -1;
|
||||||
|
|
||||||
enum class NestableType {
|
enum class NestableType {
|
||||||
Entity,
|
Entity,
|
||||||
Avatar,
|
Avatar,
|
||||||
|
@ -180,7 +182,7 @@ protected:
|
||||||
const NestableType _nestableType; // EntityItem or an AvatarData
|
const NestableType _nestableType; // EntityItem or an AvatarData
|
||||||
QUuid _id;
|
QUuid _id;
|
||||||
QUuid _parentID; // what is this thing's transform relative to?
|
QUuid _parentID; // what is this thing's transform relative to?
|
||||||
quint16 _parentJointIndex { 0 }; // which joint of the parent is this relative to?
|
quint16 _parentJointIndex { INVALID_JOINT_INDEX }; // which joint of the parent is this relative to?
|
||||||
|
|
||||||
mutable SpatiallyNestableWeakPointer _parent;
|
mutable SpatiallyNestableWeakPointer _parent;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue