Skip to content

Commit a8c0cbe

Browse files
committed
Enable contains() for stage
1 parent 2464227 commit a8c0cbe

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/renderedtarget.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -551,9 +551,6 @@ bool RenderedTarget::contains(const QPointF &point) const
551551
if (!m_costume || !m_texture.isValid() || !m_cpuTexture.isValid() || !parentItem())
552552
return false;
553553

554-
if (m_stageModel)
555-
return true; // the stage contains any point within the scene
556-
557554
const double scaleRatio = m_skin->getTextureScale(m_texture) / m_skin->getTextureScale(m_cpuTexture);
558555
QPointF translatedPoint = mapToItem(parentItem(), point);
559556
translatedPoint = mapFromStageWithOriginPoint(translatedPoint);

0 commit comments

Comments
 (0)