Don't updateSizeAndPosition on setPos as it might change texture and that isn't threadsafe
This commit is contained in:
@@ -42,7 +42,7 @@ void RenderObject::setPos( const std::pair< double, double > &pos ) {
|
||||
}
|
||||
void RenderObject::setPos( const Vec2D< double > &vec ) {
|
||||
original = vec;
|
||||
updateSizeAndPosition();
|
||||
// updateSizeAndPosition();
|
||||
}
|
||||
Vec2D< double > RenderObject::getPos() const {
|
||||
return original;
|
||||
|
||||
Reference in New Issue
Block a user