put back accidently deleted line. cleanups

This commit is contained in:
Seth Alves 2016-04-04 17:31:59 -07:00
parent cecb3a6ff1
commit af05b97c1e
2 changed files with 3 additions and 1 deletions

View file

@ -1974,6 +1974,7 @@ QList<EntityActionPointer> EntityItem::getActionsOfType(EntityActionType typeToG
}
void EntityItem::locationChanged() {
requiresRecalcBoxes();
_dirtyFlags |= Simulation::DIRTY_TRANSFORM;
EntityTreePointer tree = getTree();
if (tree) {
@ -1988,6 +1989,7 @@ void EntityItem::dimensionsChanged() {
}
void EntityItem::globalizeProperties(EntityItemProperties& properties, const QString& messageTemplate, const glm::vec3& offset) const {
// TODO -- combine this with convertLocationToScriptSemantics
bool success;
auto globalPosition = getPosition(success);
if (success) {

View file

@ -162,7 +162,7 @@ PhysicsMotionType EntityMotionState::computePhysicsMotionType() const {
return MOTION_TYPE_DYNAMIC;
}
if (_entity->isMovingRelativeToParent() ||
_entity->hasActions() ||
_entity->hasActions() ||
_entity->hasAncestorOfType(NestableType::Avatar)) {
return MOTION_TYPE_KINEMATIC;
}