projects
/
oweals
/
minetest.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Predict param2 of facedir nodes and attachment of attached_node nodes
[oweals/minetest.git]
/
src
/
scriptapi_content.cpp
diff --git
a/src/scriptapi_content.cpp
b/src/scriptapi_content.cpp
index 3b7ed517962936994707ea60b793bb6811ce70a7..30fd703496bec445ba9c209eff0cc22ce7ebe5fa 100644
(file)
--- a/
src/scriptapi_content.cpp
+++ b/
src/scriptapi_content.cpp
@@
-225,6
+225,11
@@
ContentFeatures read_content_features(lua_State *L, int index)
lua_pop(L, 1);
f.alpha = getintfield_default(L, index, "alpha", 255);
+
+ bool usealpha = getboolfield_default(L, index,
+ "use_texture_alpha", false);
+ if (usealpha)
+ f.alpha = 0;
/* Other stuff */