Update RenderableImageEntityItem.cpp

This commit is contained in:
HifiExperiments 2021-03-22 18:37:29 -07:00 committed by GitHub
parent e5f108b022
commit 6b82c7fe90
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -71,6 +71,8 @@ void ImageEntityRenderer::doRenderUpdateAsynchronousTyped(const TypedEntityPoint
} else {
naturalDimensions.y = height / width;
}
// Unlike Models (where the Renderer also doubles as the EntityItem), Images need to
// convey this information back to the game object from the Renderer
entity->setNaturalDimension(naturalDimensions);
}
}