mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 04:44:11 +02:00
use QUrl rather than just munging the url with a string-append
This commit is contained in:
parent
554b23357c
commit
717436e0fd
1 changed files with 6 additions and 2 deletions
|
@ -14,6 +14,7 @@
|
|||
|
||||
#include <QJsonDocument>
|
||||
#include <QtCore/QThread>
|
||||
#include <QUrlQuery>
|
||||
#include <glm/gtx/transform.hpp>
|
||||
|
||||
#include <AbstractViewStateInterface.h>
|
||||
|
@ -621,8 +622,11 @@ void RenderableModelEntityItem::setShapeType(ShapeType type) {
|
|||
|
||||
void RenderableModelEntityItem::setCompoundShapeURL(const QString& url) {
|
||||
auto currentCompoundShapeURL = getCompoundShapeURL();
|
||||
QString hullURL = url + "?collision-hull";
|
||||
ModelEntityItem::setCompoundShapeURL(hullURL);
|
||||
QUrl hullURL(url);
|
||||
QUrlQuery queryArgs(hullURL);
|
||||
queryArgs.addQueryItem("collision-hull", "");
|
||||
hullURL.setQuery(queryArgs);
|
||||
ModelEntityItem::setCompoundShapeURL(hullURL.toString());
|
||||
|
||||
if (getCompoundShapeURL() != currentCompoundShapeURL || !_model) {
|
||||
EntityTreePointer tree = getTree();
|
||||
|
|
Loading…
Reference in a new issue