mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-02 09:52:27 -04:00
standard order should reflect temp-hpr-fix
This commit is contained in:
parent
08ae030917
commit
2d221eadb2
@ -158,7 +158,11 @@ get_order() const {
|
||||
////////////////////////////////////////////////////////////////////
|
||||
INLINE const string &EggXfmSAnim::
|
||||
get_standard_order() {
|
||||
return _standard_order;
|
||||
if (temp_hpr_fix) {
|
||||
return _standard_order_hpr_fix;
|
||||
} else {
|
||||
return _standard_order_legacy;
|
||||
}
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////
|
||||
|
@ -22,20 +22,20 @@
|
||||
#include "eggParameters.h"
|
||||
#include "config_egg.h"
|
||||
|
||||
#include <indent.h>
|
||||
#include <compose_matrix.h>
|
||||
#include "indent.h"
|
||||
#include "compose_matrix.h"
|
||||
|
||||
#include <math.h>
|
||||
|
||||
TypeHandle EggXfmSAnim::_type_handle;
|
||||
|
||||
//string EggXfmSAnim::_standard_order = "srpht";
|
||||
|
||||
// For now, the standard order is sphrt. This matches the old,
|
||||
// incorrect behavior of decompose_matrix(). When we have a new
|
||||
// egg-optchar, we can safely remove the old decompose_matrix() and
|
||||
// restore the correct standard order (above).
|
||||
const string EggXfmSAnim::_standard_order = "sphrt";
|
||||
// restore the correct standard order.
|
||||
const string EggXfmSAnim::_standard_order_legacy = "sphrt";
|
||||
const string EggXfmSAnim::_standard_order_hpr_fix = "srpht";
|
||||
|
||||
// These are the table ID's of all tables we support, in the order we
|
||||
// expect to write them to the egg file.
|
||||
|
@ -20,9 +20,9 @@
|
||||
#define EGGXFMSANIM_H
|
||||
|
||||
|
||||
#include <pandabase.h>
|
||||
|
||||
#include "pandabase.h"
|
||||
#include "eggGroupNode.h"
|
||||
#include "config_linmath.h" // for temp_hpr_fix
|
||||
|
||||
class EggXfmAnimData;
|
||||
|
||||
@ -92,7 +92,8 @@ private:
|
||||
string _order;
|
||||
CoordinateSystem _coordsys;
|
||||
|
||||
static const string _standard_order;
|
||||
static const string _standard_order_legacy;
|
||||
static const string _standard_order_hpr_fix;
|
||||
static const string _table_ids;
|
||||
static const int _num_table_ids;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user