mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-12 07:04:36 +00:00
Defer re-init'ing the shape when TSShapeConstructor is loading a shape
This commit is contained in:
parent
0e717ea707
commit
a46779fad6
5 changed files with 143 additions and 71 deletions
|
|
@ -413,6 +413,7 @@ class TSShape
|
|||
GFXPrimitiveBufferHandle mShapeVertexIndices;
|
||||
|
||||
bool mSequencesConstructed;
|
||||
bool mNeedReinit;
|
||||
|
||||
|
||||
// shape class has few methods --
|
||||
|
|
@ -427,7 +428,10 @@ class TSShape
|
|||
bool preloadMaterialList(const Torque::Path &path); ///< called to preload and validate the materials in the mat list
|
||||
|
||||
void setupBillboardDetails( const String &cachePath );
|
||||
|
||||
|
||||
/// Inits object list (no geometry buffers)
|
||||
void initObjects();
|
||||
|
||||
/// Initializes the main vertex buffer
|
||||
void initVertexBuffers();
|
||||
|
||||
|
|
@ -557,8 +561,6 @@ class TSShape
|
|||
|
||||
const GFXVertexFormat* getVertexFormat() const { return &mVertexFormat; }
|
||||
|
||||
bool needsBufferUpdate();
|
||||
|
||||
/// @}
|
||||
|
||||
/// @name Alpha Transitions
|
||||
|
|
@ -685,6 +687,10 @@ class TSShape
|
|||
|
||||
bool setSequenceBlend(const String& seqName, bool blend, const String& blendRefSeqName, S32 blendRefFrame);
|
||||
bool setSequenceGroundSpeed(const String& seqName, const Point3F& trans, const Point3F& rot);
|
||||
|
||||
void makeEditable();
|
||||
bool needsReinit();
|
||||
bool needsBufferUpdate();
|
||||
/// @}
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue