diff options
author | Bojidar Marinov <bojidar.marinov.bg@gmail.com> | 2017-06-22 18:15:50 +0300 |
---|---|---|
committer | Bojidar Marinov <bojidar.marinov.bg@gmail.com> | 2017-06-22 18:15:50 +0300 |
commit | 2edb082c7eb85fa1175771ad298f8a8169bc267a (patch) | |
tree | 2420685c836b4d22ee4aa2d5665c7aa4ef9f07ba /editor/plugins/tile_set_editor_plugin.cpp | |
parent | f27d2a3355b8c577fccd961d28dd6085887623c2 (diff) |
Add normal map to tilemaps and tilesets
Fixes #9310
Diffstat (limited to 'editor/plugins/tile_set_editor_plugin.cpp')
-rw-r--r-- | editor/plugins/tile_set_editor_plugin.cpp | 2 |
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 0b088f7171..154de52a57 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()); |