mirror of
https://github.com/lubosz/overte.git
synced 2025-04-23 09:25:31 +02:00
Merge pull request #11737 from AndrewMeadows/scale-to-fit_RC-58
RC-58: scaleToFit() the model before updating render items
This commit is contained in:
commit
c946e46506
2 changed files with 3 additions and 1 deletions
|
@ -215,6 +215,7 @@ void RenderableModelEntityItem::updateModelBounds() {
|
|||
model->setScaleToFit(true, getDimensions());
|
||||
model->setSnapModelToRegistrationPoint(true, getRegistrationPoint());
|
||||
updateRenderItems = true;
|
||||
model->scaleToFit();
|
||||
}
|
||||
|
||||
bool success;
|
||||
|
|
|
@ -262,6 +262,8 @@ public:
|
|||
|
||||
Q_INVOKABLE MeshProxyList getMeshes() const;
|
||||
|
||||
void scaleToFit();
|
||||
|
||||
public slots:
|
||||
void loadURLFinished(bool success);
|
||||
|
||||
|
@ -320,7 +322,6 @@ protected:
|
|||
virtual void initJointStates();
|
||||
|
||||
void setScaleInternal(const glm::vec3& scale);
|
||||
void scaleToFit();
|
||||
void snapToRegistrationPoint();
|
||||
|
||||
void computeMeshPartLocalBounds();
|
||||
|
|
Loading…
Reference in a new issue