mirror of
https://github.com/overte-org/overte.git
synced 2025-04-25 14:13:47 +02:00
remove DependencyManager fetch of backpointer
This commit is contained in:
parent
d01c5d1ae5
commit
e85cdad8c7
1 changed files with 4 additions and 1 deletions
|
@ -40,7 +40,10 @@ void Hand::simulate(float deltaTime, bool isMine) {
|
|||
}
|
||||
|
||||
void Hand::renderHandTargets(RenderArgs* renderArgs, bool isMine) {
|
||||
const float avatarScale = DependencyManager::get<AvatarManager>()->getMyAvatar()->getScale();
|
||||
float avatarScale = 1.0f;
|
||||
if (_owningAvatar) {
|
||||
avatarScale = _owningAvatar->getScale();
|
||||
}
|
||||
|
||||
const float alpha = 1.0f;
|
||||
const glm::vec3 redColor(1.0f, 0.0f, 0.0f); // Color the hand targets red to be different than skin
|
||||
|
|
Loading…
Reference in a new issue