Added the 3 new cleaned up classes to the build. They still need some work on their bindings to work properly though.

This commit is contained in:
Relintai 2022-06-07 03:42:35 +02:00
parent daa818e9d3
commit d30be583de
3 changed files with 15 additions and 0 deletions

View File

@ -10,6 +10,10 @@ sources = [
"algos/mm_algos.cpp",
"algos/mm_algos_bind.cpp",
"nodes/mm_material.cpp",
"nodes/mm_node_universal_property.cpp",
"nodes/mm_node.cpp",
]

View File

@ -11,6 +11,9 @@ def configure(env):
def get_doc_classes():
return [
"MMAlgos",
"MMNode",
"MMNodeUniversalProperty",
"MMMaterial",
]
def get_doc_path():

View File

@ -27,11 +27,19 @@ SOFTWARE.
#include "algos/mm_algos.h"
#include "algos/mm_algos_bind.h"
#include "nodes/mm_material.h"
#include "nodes/mm_node.h"
#include "nodes/mm_node_universal_property.h"
static _MMAlgos *_mm_algos_singleton = nullptr;
void register_material_maker_types() {
ClassDB::register_class<_MMAlgos>();
ClassDB::register_class<MMNodeUniversalProperty>();
ClassDB::register_class<MMMaterial>();
ClassDB::register_class<MMNode>();
_mm_algos_singleton = memnew(_MMAlgos);
Engine::get_singleton()->add_singleton(Engine::Singleton("MMAlgos", _MMAlgos::get_singleton()));
}