Fixed bug: 3D model selector sets scale values to zero

This commit is contained in:
Cirilo Bernardo 2016-01-24 08:37:28 +11:00
parent 20f97f34c3
commit ff07ad3f05
1 changed files with 15 additions and 12 deletions

View File

@ -477,20 +477,23 @@ void PANEL_PREV_3D::GetModelData( S3D_INFO* aModel )
if( NULL == aModel ) if( NULL == aModel )
return; return;
// XXX - due to cross-platform differences in wxWidgets, // XXX - due to cross-platform differences in wxWidgets, extracting
// extracting scale/rotation/offset will be useless until // scale/rotation/offset only works as expected when the preview
// the preview panel can be made to work in wxFileDialog // panel is not embedded in a file selector dialog. This conditional
/* // execution should be removed once the cross-platform issues are
SGPOINT scale; // fixed.
SGPOINT rotation; if( NULL == m_FileDlg )
SGPOINT offset; {
SGPOINT scale;
SGPOINT rotation;
SGPOINT offset;
getOrientationVars( scale, rotation, offset ); getOrientationVars( scale, rotation, offset );
aModel->scale = scale; aModel->scale = scale;
aModel->offset = offset; aModel->offset = offset;
aModel->rotation = rotation; aModel->rotation = rotation;
//*/ }
// return if we are not in file selection mode // return if we are not in file selection mode
if( NULL == m_FileDlg ) if( NULL == m_FileDlg )