Created
January 17, 2016 00:42
-
-
Save sofar/971b26ffbff16e1183d4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/nodedef.cpp b/src/nodedef.cpp | |
index 2ebe1c1..110ac93 100644 | |
--- a/src/nodedef.cpp | |
+++ b/src/nodedef.cpp | |
@@ -909,7 +909,6 @@ void CNodeDefManager::updateTextures(IGameDef *gamedef, | |
break; | |
case NDT_MESH: | |
f->solidness = 0; | |
- f->backface_culling = false; | |
break; | |
case NDT_TORCHLIKE: | |
case NDT_SIGNLIKE: | |
diff --git a/src/script/common/c_content.cpp b/src/script/common/c_content.cpp | |
index 62de2c9..eb00f6c 100644 | |
--- a/src/script/common/c_content.cpp | |
+++ b/src/script/common/c_content.cpp | |
@@ -367,6 +367,10 @@ ContentFeatures read_content_features(lua_State *L, int index) | |
f.drawtype = (NodeDrawType)getenumfield(L, index, "drawtype", | |
ScriptApiNode::es_DrawType,NDT_NORMAL); | |
+ | |
+ if (f.drawtype == NDT_MESH) | |
+ f.backface_culling = false; | |
+ | |
getfloatfield(L, index, "visual_scale", f.visual_scale); | |
/* Meshnode model filename */ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment