Skip to content

Commit

Permalink
fix: still allow scale for create/updates for hands
Browse files Browse the repository at this point in the history
  • Loading branch information
EdwardLu2018 committed Apr 21, 2024
1 parent 112eda3 commit 070d97d
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/systems/core/message-actions/create-update.js
Original file line number Diff line number Diff line change
Expand Up @@ -328,12 +328,16 @@ export default class CreateUpdate {
break;
case 'handLeft':
case 'handRight':
this.setEntityAttributes(entityEl, {
const newAttributes = {
position: data.position,
rotation: data.rotation,
'gltf-model': data.url,
// TODO: Add support new component for arena-other-user-hand for grab handling
}); // Only set permitted hands attributes, return
};
if (data.scale !== undefined) {
newAttributes.scale = data.scale;
}
this.setEntityAttributes(entityEl, newAttributes); // Only set permitted hands attributes, return
return true;
case 'cube':
type = 'box'; // arena legacy! new libraries/persist objects should use box!
Expand Down

0 comments on commit 070d97d

Please sign in to comment.