Commit 497170d3 authored by hybrid's avatar hybrid

Fix material deserialization. Empty textures were producing a texture named...

Fix material deserialization. Empty textures were producing a texture named '0' (zero), which lead to annoying warnings all over the place. This empty string is hopefully safe everywhere.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4557 dfc29bdd-3216-0410-991c-e03cc46cb475
parent edac25e8
...@@ -1905,7 +1905,7 @@ public: ...@@ -1905,7 +1905,7 @@ public:
if ( Value ) if ( Value )
return core::stringw(Value->getName().getPath().c_str()); return core::stringw(Value->getName().getPath().c_str());
return core::stringw(0); return core::stringw();
} }
virtual core::stringc getString() _IRR_OVERRIDE_ virtual core::stringc getString() _IRR_OVERRIDE_
...@@ -1917,7 +1917,7 @@ public: ...@@ -1917,7 +1917,7 @@ public:
if ( Value ) if ( Value )
return core::stringc(Value->getName().getPath().c_str()); return core::stringc(Value->getName().getPath().c_str());
return core::stringc(0); return core::stringc();
} }
virtual void setString(const char* text) _IRR_OVERRIDE_ virtual void setString(const char* text) _IRR_OVERRIDE_
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment