From 6bd841857f6a00d6decc924493dc0939624d7eb7 Mon Sep 17 00:00:00 2001 From: Seth Alves Date: Mon, 10 Apr 2017 13:50:36 -0700 Subject: [PATCH] added a comment --- libraries/entities-renderer/src/RenderableModelEntityItem.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libraries/entities-renderer/src/RenderableModelEntityItem.cpp b/libraries/entities-renderer/src/RenderableModelEntityItem.cpp index 0ff68b4e6a..d30baaa6eb 100644 --- a/libraries/entities-renderer/src/RenderableModelEntityItem.cpp +++ b/libraries/entities-renderer/src/RenderableModelEntityItem.cpp @@ -621,6 +621,10 @@ void RenderableModelEntityItem::setShapeType(ShapeType type) { } void RenderableModelEntityItem::setCompoundShapeURL(const QString& url) { + // because the caching system only allows one Geometry per url, and because this url might also be used + // as a visual model, we need to change this url in some way. We add a "collision-hull" query-arg so it + // will end up in a different hash-key in ResourceCache. TODO: It would be better to use the same URL and + // parse it twice. auto currentCompoundShapeURL = getCompoundShapeURL(); QUrl hullURL(url); QUrlQuery queryArgs(hullURL);