3
0
Fork 0
mirror of https://github.com/JulianGro/overte.git synced 2025-04-29 23:43:06 +02:00

Merge pull request from danteruiz/keyboard-handle-scaling

Case 21500: Keyboard handle appears huge when scaling down avatar
This commit is contained in:
Shannon Romano 2019-03-07 15:39:43 -08:00 committed by GitHub
commit ab08b56bd1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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);