|
|
@@ -212,7 +212,7 @@ void StaticSprite2D::OnWorldBoundingBoxUpdate()
|
|
|
worldBoundingBox_.Clear();
|
|
|
|
|
|
const Vector<SourceBatch2D>& sourceBatches = GetSourceBatches();
|
|
|
- for (unsigned i = 0; i < sourceBatches[0].vertices_.Size(); i += 2)
|
|
|
+ for (unsigned i = 0; i < sourceBatches[0].vertices_.Size(); ++i)
|
|
|
worldBoundingBox_.Merge(sourceBatches[0].vertices_[i].position_);
|
|
|
|
|
|
boundingBox_ = worldBoundingBox_.Transformed(node_->GetWorldTransform().Inverse());
|