mirror of
https://github.com/overte-org/overte.git
synced 2025-08-07 08:16:21 +02:00
Merge pull request #15085 from danteruiz/keyboard-handle-scaling
Case 21500: Keyboard handle appears huge when scaling down avatar
This commit is contained in:
commit
ab08b56bd1
1 changed files with 6 additions and 0 deletions
|
@ -373,6 +373,12 @@ void Keyboard::raiseKeyboardAnchor(bool raise) const {
|
||||||
void Keyboard::scaleKeyboard(float sensorToWorldScale) {
|
void Keyboard::scaleKeyboard(float sensorToWorldScale) {
|
||||||
auto entityScriptingInterface = DependencyManager::get<EntityScriptingInterface>();
|
auto entityScriptingInterface = DependencyManager::get<EntityScriptingInterface>();
|
||||||
|
|
||||||
|
{
|
||||||
|
EntityItemProperties properties;
|
||||||
|
properties.setDimensions(_anchor.originalDimensions * sensorToWorldScale);
|
||||||
|
entityScriptingInterface->editEntity(_anchor.entityID, properties);
|
||||||
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
EntityItemProperties properties;
|
EntityItemProperties properties;
|
||||||
properties.setLocalPosition(_backPlate.localPosition * sensorToWorldScale);
|
properties.setLocalPosition(_backPlate.localPosition * sensorToWorldScale);
|
||||||
|
|
Loading…
Reference in a new issue