aboutsummaryrefslogtreecommitdiff
path: root/editor/plugins
diff options
context:
space:
mode:
authorBojidar Marinov2017-06-22 18:15:50 +0300
committerBojidar Marinov2017-06-22 18:15:50 +0300
commit2edb082c7eb85fa1175771ad298f8a8169bc267a (patch)
tree2420685c836b4d22ee4aa2d5665c7aa4ef9f07ba /editor/plugins
parentf27d2a3355b8c577fccd961d28dd6085887623c2 (diff)
downloadgodot-2edb082c7eb85fa1175771ad298f8a8169bc267a.tar.gz
godot-2edb082c7eb85fa1175771ad298f8a8169bc267a.tar.zst
godot-2edb082c7eb85fa1175771ad298f8a8169bc267a.zip
Add normal map to tilemaps and tilesets
Fixes #9310
Diffstat (limited to '')
-rw-r--r--editor/plugins/tile_set_editor_plugin.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/editor/plugins/tile_set_editor_plugin.cpp b/editor/plugins/tile_set_editor_plugin.cpp
index 0b088f717..154de52a5 100644
--- a/editor/plugins/tile_set_editor_plugin.cpp
+++ b/editor/plugins/tile_set_editor_plugin.cpp
@@ -53,6 +53,7 @@ void TileSetEditor::_import_node(Node *p_node, Ref<TileSet> p_library) {
Sprite *mi = child->cast_to<Sprite>();
Ref<Texture> texture = mi->get_texture();
+ Ref<Texture> normal_map = mi->get_normal_map();
Ref<ShaderMaterial> material = mi->get_material();
if (texture.is_null())
@@ -67,6 +68,7 @@ void TileSetEditor::_import_node(Node *p_node, Ref<TileSet> p_library) {
}
p_library->tile_set_texture(id, texture);
+ p_library->tile_set_normal_map(id, normal_map);
p_library->tile_set_material(id, material);
p_library->tile_set_modulate(id, mi->get_modulate());