diff --git a/SCsub b/SCsub index 722495f..4bcffbf 100644 --- a/SCsub +++ b/SCsub @@ -40,6 +40,7 @@ sources = [ "props/prop_2d_data_light.cpp", "props/prop_2d_data_prop.cpp", "props/prop_2d_data_tiled_wall_2d.cpp", + "props/prop_2d_data_sprite.cpp", "clutter/ground_clutter_2d.cpp", "clutter/ground_clutter_2d_foliage.cpp", diff --git a/props/prop_2d_data_sprite.h b/props/prop_2d_data_sprite.h index 8178cff..e5de71f 100644 --- a/props/prop_2d_data_sprite.h +++ b/props/prop_2d_data_sprite.h @@ -20,8 +20,8 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ -#ifndef PROP_2D_DATA_LIGHT_H -#define PROP_2D_DATA_LIGHT_H +#ifndef PROP_2D_DATA_SPRITE_H +#define PROP_2D_DATA_SPRITE_H #include "core/version.h" diff --git a/register_types.cpp b/register_types.cpp index a13646f..14faebe 100644 --- a/register_types.cpp +++ b/register_types.cpp @@ -38,6 +38,7 @@ SOFTWARE. #include "props/prop_2d_data_light.h" #include "props/prop_2d_data_prop.h" #include "props/prop_2d_data_scene.h" +#include "props/prop_2d_data_sprite.h" #include "props/prop_2d_data_tiled_wall_2d.h" #if VERSION_MINOR >= 4 @@ -88,6 +89,7 @@ void register_props_2d_types() { ClassDB::register_class(); ClassDB::register_class(); ClassDB::register_class(); + ClassDB::register_class(); #if VERSION_MINOR >= 4 ClassDB::register_class(); @@ -141,6 +143,9 @@ void register_props_2d_types() { Ref tiled_wall_processor = Ref(memnew(Prop2DDataTiledWall2D)); Prop2DUtils::add_processor(tiled_wall_processor); + Ref sprite_processor = Ref(memnew(Prop2DDataSprite)); + Prop2DUtils::add_processor(sprite_processor); + #ifdef TOOLS_ENABLED EditorPlugins::add_by_type(); #endif