Added Prop2DDataSprite to the build.

This commit is contained in:
Relintai 2022-02-25 09:20:48 +01:00
parent 7a0be14d51
commit 69b1015221
3 changed files with 8 additions and 2 deletions

1
SCsub
View File

@ -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",

View File

@ -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"

View File

@ -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<Prop2DDataLight>();
ClassDB::register_class<Prop2DDataProp2D>();
ClassDB::register_class<Prop2DDataTiledWall2D>();
ClassDB::register_class<Prop2DDataSprite>();
#if VERSION_MINOR >= 4
ClassDB::register_class<Prop2DDataPortal>();
@ -141,6 +143,9 @@ void register_props_2d_types() {
Ref<Prop2DDataTiledWall2D> tiled_wall_processor = Ref<Prop2DDataTiledWall2D>(memnew(Prop2DDataTiledWall2D));
Prop2DUtils::add_processor(tiled_wall_processor);
Ref<Prop2DDataSprite> sprite_processor = Ref<Prop2DDataSprite>(memnew(Prop2DDataSprite));
Prop2DUtils::add_processor(sprite_processor);
#ifdef TOOLS_ENABLED
EditorPlugins::add_by_type<Prop2DEditorPlugin>();
#endif