History

more locking

Seth Alves committed 11 years ago

Commit d72152d1 parent 07a4dc33 files · +8 −5Browse files

Showing the changes to libraries/physics/src/ObjectActionSpring.cpp (1 of 3 files). Show all

Unified · Split

libraries/physics/src/ObjectActionSpring.cpp+1−2
@@ -159,14 +159,13 @@ bool ObjectActionSpring::updateArguments(QVariantMap arguments) { · 158 unmodified lines
159159 _rotationalTarget = rotationalTarget;
160160 _angularTimeScale = glm::max(MIN_TIMESCALE, glm::abs(angularTimeScale));
161161 _active = true;
162− activateBody();
163162
164163 auto ownerEntity = _ownerEntity.lock();
165164 if (ownerEntity) {
166165 ownerEntity->setActionDataDirty(true);
167166 }
168−
169167 });
168+ activateBody();
170169 }
171170
172171 return true;