mirror of
https://github.com/Relintai/props_2d.git
synced 2024-11-12 10:25:01 +01:00
Added Prop2DDataSprite to the build.
This commit is contained in:
parent
7a0be14d51
commit
69b1015221
1
SCsub
1
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",
|
||||
|
@ -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"
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user