mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-04-21 04:15:36 +00:00
Removed hard coded directory paths
- Removed references to core directory. - Switch some references to tools directory - Added preferences variables where appropriate
This commit is contained in:
parent
853b70255b
commit
4b1334db9f
25 changed files with 75 additions and 18 deletions
|
|
@ -220,6 +220,11 @@ protected:
|
|||
Vector<FileName> mSequences;
|
||||
ChangeSet mChangeSet;
|
||||
|
||||
// Paths to shapes used by MeshFit
|
||||
static String smCapsuleShapePath;
|
||||
static String smCubeShapePath;
|
||||
static String smSphereShapePath;
|
||||
|
||||
static bool addSequenceFromField( void *obj, const char *index, const char *data );
|
||||
|
||||
static void _onTSShapeLoaded( Resource< TSShape >& shape );
|
||||
|
|
@ -250,6 +255,7 @@ public:
|
|||
|
||||
DECLARE_CONOBJECT(TSShapeConstructor);
|
||||
static void initPersistFields();
|
||||
static void consoleInit();
|
||||
static TSShapeConstructor* findShapeConstructor(const FileName& path);
|
||||
|
||||
bool onAdd();
|
||||
|
|
@ -261,6 +267,13 @@ public:
|
|||
|
||||
void notifyShapeChanged();
|
||||
|
||||
/// @name Shape paths for MeshFit
|
||||
///@{
|
||||
static const String& getCapsuleShapePath() { return smCapsuleShapePath; }
|
||||
static const String& getCubeShapePath() { return smCubeShapePath; }
|
||||
static const String& getSphereShapePath() { return smSphereShapePath; }
|
||||
///@}
|
||||
|
||||
TSShape* getShape() const { return mShape; }
|
||||
const String& getShapePath() const { return mShapePath; }
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue