Re-enabled the tonality node.

This commit is contained in:
Relintai 2022-06-19 17:35:11 +02:00
parent 9375356924
commit 5a92fc871d
2 changed files with 48 additions and 47 deletions

View File

@ -136,7 +136,7 @@ sources = [
"nodes/gradient/gradient.cpp", "nodes/gradient/gradient.cpp",
"nodes/gradient/circular_gradient.cpp", "nodes/gradient/circular_gradient.cpp",
#"nodes/filter/tonality.cpp", "nodes/filter/tonality.cpp",
#"nodes/filter/swap_channels.cpp", #"nodes/filter/swap_channels.cpp",
#"nodes/filter/quantize.cpp", #"nodes/filter/quantize.cpp",
#"nodes/filter/math.cpp", #"nodes/filter/math.cpp",

View File

@ -152,8 +152,8 @@ SOFTWARE.
#include "nodes/filter/math.h" #include "nodes/filter/math.h"
#include "nodes/filter/quantize.h" #include "nodes/filter/quantize.h"
#include "nodes/filter/swap_channels.h" #include "nodes/filter/swap_channels.h"
#include "nodes/filter/tonality.h"
*/ */
#include "nodes/filter/tonality.h"
static _MMAlgos *_mm_algos_singleton = nullptr; static _MMAlgos *_mm_algos_singleton = nullptr;
@ -327,9 +327,10 @@ void register_material_maker_types() {
MMAlgos::register_node_class("Gradient", "MMGradient"); MMAlgos::register_node_class("Gradient", "MMGradient");
ClassDB::register_class<MMCircularGradient>(); ClassDB::register_class<MMCircularGradient>();
MMAlgos::register_node_class("Gradient", "MMCircularGradient"); MMAlgos::register_node_class("Gradient", "MMCircularGradient");
/*
ClassDB::register_class<MMTonality>(); ClassDB::register_class<MMTonality>();
MMAlgos::register_node_class("Filter", "MMTonality"); MMAlgos::register_node_class("Filter", "MMTonality");
/*
ClassDB::register_class<MMSwapChannels>(); ClassDB::register_class<MMSwapChannels>();
MMAlgos::register_node_class("Filter", "MMSwapChannels"); MMAlgos::register_node_class("Filter", "MMSwapChannels");
ClassDB::register_class<MMQuantize>(); ClassDB::register_class<MMQuantize>();