mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 18:16:45 +02:00
put back accidently deleted line. cleanups
This commit is contained in:
parent
cecb3a6ff1
commit
af05b97c1e
2 changed files with 3 additions and 1 deletions
|
@ -1974,6 +1974,7 @@ QList<EntityActionPointer> EntityItem::getActionsOfType(EntityActionType typeToG
|
||||||
}
|
}
|
||||||
|
|
||||||
void EntityItem::locationChanged() {
|
void EntityItem::locationChanged() {
|
||||||
|
requiresRecalcBoxes();
|
||||||
_dirtyFlags |= Simulation::DIRTY_TRANSFORM;
|
_dirtyFlags |= Simulation::DIRTY_TRANSFORM;
|
||||||
EntityTreePointer tree = getTree();
|
EntityTreePointer tree = getTree();
|
||||||
if (tree) {
|
if (tree) {
|
||||||
|
@ -1988,6 +1989,7 @@ void EntityItem::dimensionsChanged() {
|
||||||
}
|
}
|
||||||
|
|
||||||
void EntityItem::globalizeProperties(EntityItemProperties& properties, const QString& messageTemplate, const glm::vec3& offset) const {
|
void EntityItem::globalizeProperties(EntityItemProperties& properties, const QString& messageTemplate, const glm::vec3& offset) const {
|
||||||
|
// TODO -- combine this with convertLocationToScriptSemantics
|
||||||
bool success;
|
bool success;
|
||||||
auto globalPosition = getPosition(success);
|
auto globalPosition = getPosition(success);
|
||||||
if (success) {
|
if (success) {
|
||||||
|
|
|
@ -162,7 +162,7 @@ PhysicsMotionType EntityMotionState::computePhysicsMotionType() const {
|
||||||
return MOTION_TYPE_DYNAMIC;
|
return MOTION_TYPE_DYNAMIC;
|
||||||
}
|
}
|
||||||
if (_entity->isMovingRelativeToParent() ||
|
if (_entity->isMovingRelativeToParent() ||
|
||||||
_entity->hasActions() ||
|
_entity->hasActions() ||
|
||||||
_entity->hasAncestorOfType(NestableType::Avatar)) {
|
_entity->hasAncestorOfType(NestableType::Avatar)) {
|
||||||
return MOTION_TYPE_KINEMATIC;
|
return MOTION_TYPE_KINEMATIC;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue