mirror of
https://github.com/overte-org/overte.git
synced 2025-08-06 19:59:28 +02:00
Remove focus highlight on delete entity
This commit is contained in:
parent
52f212b94c
commit
944734fed2
1 changed files with 10 additions and 0 deletions
|
@ -719,6 +719,16 @@ Application::Application(int& argc, char** argv, QElapsedTimer &startup_time) :
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
connect(entityScriptingInterface.data(), &EntityScriptingInterface::deletingEntity,
|
||||||
|
[=](const EntityItemID& entityItemID) {
|
||||||
|
if (entityItemID == _keyboardFocusedItem) {
|
||||||
|
_keyboardFocusedItem = UNKNOWN_ENTITY_ID;
|
||||||
|
if (_keyboardFocusHighlight) {
|
||||||
|
_keyboardFocusHighlight->setVisible(false);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
// If the user clicks somewhere where there is NO entity at all, we will release focus
|
// If the user clicks somewhere where there is NO entity at all, we will release focus
|
||||||
connect(getEntities(), &EntityTreeRenderer::mousePressOffEntity,
|
connect(getEntities(), &EntityTreeRenderer::mousePressOffEntity,
|
||||||
[=](const RayToEntityIntersectionResult& entityItemID, const QMouseEvent* event, unsigned int deviceId) {
|
[=](const RayToEntityIntersectionResult& entityItemID, const QMouseEvent* event, unsigned int deviceId) {
|
||||||
|
|
Loading…
Reference in a new issue