mirror of
https://github.com/AxioDL/PrimeWorldEditor.git
synced 2025-06-17 12:03:34 +00:00
CMaterial: std::move string in SetName()
Allows callers to avoid copies.
This commit is contained in:
parent
e7b3015f08
commit
b90bd90e03
@ -143,7 +143,7 @@ public:
|
||||
CMaterial* GetNextDrawPass() const { return mpNextDrawPassMaterial.get(); }
|
||||
CMaterial* GetBloomVersion() const { return mpBloomMaterial.get(); }
|
||||
|
||||
void SetName(const TString& rkName) { mName = rkName; }
|
||||
void SetName(TString rkName) { mName = std::move(rkName); }
|
||||
void SetOptions(FMaterialOptions Options) { mOptions = Options; Update(); }
|
||||
void SetVertexDescription(FVertexDescription Desc) { mVtxDesc = Desc; Update(); }
|
||||
void SetBlendMode(GLenum SrcFac, GLenum DstFac) { mBlendSrcFac = SrcFac; mBlendDstFac = DstFac; mRecalcHash = true; }
|
||||
|
Loading…
x
Reference in New Issue
Block a user