mirror of
https://github.com/lubosz/overte.git
synced 2025-04-16 22:26:42 +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) {
|
||||
auto entityScriptingInterface = DependencyManager::get<EntityScriptingInterface>();
|
||||
|
||||
{
|
||||
EntityItemProperties properties;
|
||||
properties.setDimensions(_anchor.originalDimensions * sensorToWorldScale);
|
||||
entityScriptingInterface->editEntity(_anchor.entityID, properties);
|
||||
}
|
||||
|
||||
{
|
||||
EntityItemProperties properties;
|
||||
properties.setLocalPosition(_backPlate.localPosition * sensorToWorldScale);
|
||||
|
|
Loading…
Reference in a new issue