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:
John Conklin II 2017-11-03 09:46:20 -07:00 committed by GitHub
commit c946e46506
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View file

@ -215,6 +215,7 @@ void RenderableModelEntityItem::updateModelBounds() {
model->setScaleToFit(true, getDimensions());
model->setSnapModelToRegistrationPoint(true, getRegistrationPoint());
updateRenderItems = true;
model->scaleToFit();
}
bool success;

View file

@ -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();