mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-07-28 18:17:51 +02:00
re-evaluate an entities in-bullet status when parentID changes
This commit is contained in:
parent
61f0c56a36
commit
01ff3f14b6
2 changed files with 9 additions and 1 deletions
|
@ -1308,7 +1308,7 @@ bool EntityItem::setProperties(const EntityItemProperties& properties) {
|
||||||
SET_ENTITY_PROPERTY_FROM_PROPERTIES(href, setHref);
|
SET_ENTITY_PROPERTY_FROM_PROPERTIES(href, setHref);
|
||||||
SET_ENTITY_PROPERTY_FROM_PROPERTIES(description, setDescription);
|
SET_ENTITY_PROPERTY_FROM_PROPERTIES(description, setDescription);
|
||||||
SET_ENTITY_PROPERTY_FROM_PROPERTIES(actionData, setActionData);
|
SET_ENTITY_PROPERTY_FROM_PROPERTIES(actionData, setActionData);
|
||||||
SET_ENTITY_PROPERTY_FROM_PROPERTIES(parentID, setParentID);
|
SET_ENTITY_PROPERTY_FROM_PROPERTIES(parentID, updateParentID);
|
||||||
SET_ENTITY_PROPERTY_FROM_PROPERTIES(parentJointIndex, setParentJointIndex);
|
SET_ENTITY_PROPERTY_FROM_PROPERTIES(parentJointIndex, setParentJointIndex);
|
||||||
SET_ENTITY_PROPERTY_FROM_PROPERTIES(queryAACube, setQueryAACube);
|
SET_ENTITY_PROPERTY_FROM_PROPERTIES(queryAACube, setQueryAACube);
|
||||||
|
|
||||||
|
@ -1565,6 +1565,13 @@ void EntityItem::updatePosition(const glm::vec3& value) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void EntityItem::updateParentID(const QUuid& value) {
|
||||||
|
if (_parentID != value) {
|
||||||
|
setParentID(value);
|
||||||
|
_dirtyFlags |= Simulation::DIRTY_MOTION_TYPE; // children are forced to be kinematic
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
void EntityItem::updatePositionFromNetwork(const glm::vec3& value) {
|
void EntityItem::updatePositionFromNetwork(const glm::vec3& value) {
|
||||||
if (shouldSuppressLocationEdits()) {
|
if (shouldSuppressLocationEdits()) {
|
||||||
return;
|
return;
|
||||||
|
|
|
@ -339,6 +339,7 @@ public:
|
||||||
// updateFoo() methods to be used when changes need to be accumulated in the _dirtyFlags
|
// updateFoo() methods to be used when changes need to be accumulated in the _dirtyFlags
|
||||||
virtual void updateRegistrationPoint(const glm::vec3& value);
|
virtual void updateRegistrationPoint(const glm::vec3& value);
|
||||||
void updatePosition(const glm::vec3& value);
|
void updatePosition(const glm::vec3& value);
|
||||||
|
void updateParentID(const QUuid& value);
|
||||||
void updatePositionFromNetwork(const glm::vec3& value);
|
void updatePositionFromNetwork(const glm::vec3& value);
|
||||||
void updateDimensions(const glm::vec3& value);
|
void updateDimensions(const glm::vec3& value);
|
||||||
void updateRotation(const glm::quat& rotation);
|
void updateRotation(const glm::quat& rotation);
|
||||||
|
|
Loading…
Reference in a new issue