From 2edb082c7eb85fa1175771ad298f8a8169bc267a Mon Sep 17 00:00:00 2001 From: Bojidar Marinov Date: Thu, 22 Jun 2017 18:15:50 +0300 Subject: Add normal map to tilemaps and tilesets Fixes #9310 --- editor/plugins/tile_set_editor_plugin.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'editor') 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 p_library) { Sprite *mi = child->cast_to(); Ref texture = mi->get_texture(); + Ref normal_map = mi->get_normal_map(); Ref material = mi->get_material(); if (texture.is_null()) @@ -67,6 +68,7 @@ void TileSetEditor::_import_node(Node *p_node, Ref 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()); -- cgit v1.2.3