Skip to content

Commit

Permalink
utils: pxmv: fixed inverted QC $origin coordinates in editor
Browse files Browse the repository at this point in the history
  • Loading branch information
SNMetamorph committed Dec 5, 2023
1 parent 95f2171 commit cfaf1ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/pxmv/studio_utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1444,7 +1444,7 @@ const char *StudioModel::getQCcode( void )
{
case TYPE_ORIGIN:
if( g_viewerSettings.editMode == EDIT_SOURCE )
Q_snprintf( str, sizeof( str ), "$origin %g %g %g", ed->origin.y, ed->origin.x, ed->origin.z );
Q_snprintf( str, sizeof( str ), "$origin %g %g %g", -ed->origin.y, -ed->origin.x, -ed->origin.z );
break;
case TYPE_BBOX:
Q_snprintf( str, sizeof( str ), "$bbox %g %g %g %g %g %g", ed->mins.x, ed->mins.y, ed->mins.z, ed->maxs.x, ed->maxs.y, ed->maxs.z );
Expand Down

0 comments on commit cfaf1ba

Please sign in to comment.