mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-09 08:36:26 +02:00
added a comment
This commit is contained in:
parent
717436e0fd
commit
6bd841857f
1 changed files with 4 additions and 0 deletions
|
@ -621,6 +621,10 @@ void RenderableModelEntityItem::setShapeType(ShapeType type) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void RenderableModelEntityItem::setCompoundShapeURL(const QString& url) {
|
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();
|
auto currentCompoundShapeURL = getCompoundShapeURL();
|
||||||
QUrl hullURL(url);
|
QUrl hullURL(url);
|
||||||
QUrlQuery queryArgs(hullURL);
|
QUrlQuery queryArgs(hullURL);
|
||||||
|
|
Loading…
Reference in a new issue