Skip to content

Commit 684fac9

Browse files
committed
Fix bug with mouse coordinate label not showing.
1 parent 5350af8 commit 684fac9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/scenegraph.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ void MildredWidget::createSceneGraph()
123123
RenderableMaterial::GeometryShaderType::None, RenderableMaterial::FragmentShaderType::Monochrome);
124124
mouseCoordLabelMaterial->setAmbient(QColor(0, 0, 0, 255));
125125
mouseCoordEntity_ = new TextEntity(sceneObjectsEntity_, QString("0.0, 0.0"));
126-
mouseCoordEntity_->addComponent(mouseCoordLabelMaterial);
126+
mouseCoordEntity_->setMaterial(mouseCoordLabelMaterial);
127127
mouseCoordEntity_->setFont(QFont("monospace", 10.0));
128128
mouseCoordEntity_->setAnchorPoint(MildredMetrics::AnchorPoint::BottomLeft);
129129
mouseCoordEntity_->setEnabled(false);

0 commit comments

Comments
 (0)