diff --git a/modules/material_maker/nodes/filter/fill_channel.cpp b/modules/material_maker/nodes/filter/fill_channel.cpp index 574d88c45..70178c8b3 100644 --- a/modules/material_maker/nodes/filter/fill_channel.cpp +++ b/modules/material_maker/nodes/filter/fill_channel.cpp @@ -121,15 +121,15 @@ MMFillChannel::~MMFillChannel() { void MMFillChannel::_bind_methods() { ClassDB::bind_method(D_METHOD("get_image"), &MMFillChannel::get_image); ClassDB::bind_method(D_METHOD("set_image", "value"), &MMFillChannel::set_image); - ADD_PROPERTY(PropertyInfo(Variant::OBJECT, "image", PROPERTY_HINT_RESOURCE_TYPE, "Ref"), "set_image", "get_image"); + ADD_PROPERTY(PropertyInfo(Variant::OBJECT, "image", PROPERTY_HINT_RESOURCE_TYPE, "MMNodeUniversalProperty"), "set_image", "get_image"); ClassDB::bind_method(D_METHOD("get_input"), &MMFillChannel::get_input); ClassDB::bind_method(D_METHOD("set_input", "value"), &MMFillChannel::set_input); - ADD_PROPERTY(PropertyInfo(Variant::OBJECT, "input", PROPERTY_HINT_RESOURCE_TYPE, "Ref"), "set_input", "get_input"); + ADD_PROPERTY(PropertyInfo(Variant::OBJECT, "input", PROPERTY_HINT_RESOURCE_TYPE, "MMNodeUniversalProperty"), "set_input", "get_input"); ClassDB::bind_method(D_METHOD("get_value"), &MMFillChannel::get_value); ClassDB::bind_method(D_METHOD("set_value", "value"), &MMFillChannel::set_value); - ADD_PROPERTY(PropertyInfo(Variant::OBJECT, "value", PROPERTY_HINT_RESOURCE_TYPE, "Ref"), "set_value", "get_value"); + ADD_PROPERTY(PropertyInfo(Variant::OBJECT, "value", PROPERTY_HINT_RESOURCE_TYPE, "MMNodeUniversalProperty"), "set_value", "get_value"); ClassDB::bind_method(D_METHOD("get_channel"), &MMFillChannel::get_channel); ClassDB::bind_method(D_METHOD("set_channel", "value"), &MMFillChannel::set_channel); diff --git a/modules/material_maker/nodes/filter/fill_to_position.cpp b/modules/material_maker/nodes/filter/fill_to_position.cpp index 95e9126ee..cbd710912 100644 --- a/modules/material_maker/nodes/filter/fill_to_position.cpp +++ b/modules/material_maker/nodes/filter/fill_to_position.cpp @@ -100,11 +100,11 @@ MMFillToPosition::~MMFillToPosition() { void MMFillToPosition::_bind_methods() { ClassDB::bind_method(D_METHOD("get_image"), &MMFillToPosition::get_image); ClassDB::bind_method(D_METHOD("set_image", "value"), &MMFillToPosition::set_image); - ADD_PROPERTY(PropertyInfo(Variant::OBJECT, "image", PROPERTY_HINT_RESOURCE_TYPE, "Ref"), "set_image", "get_image"); + ADD_PROPERTY(PropertyInfo(Variant::OBJECT, "image", PROPERTY_HINT_RESOURCE_TYPE, "MMNodeUniversalProperty"), "set_image", "get_image"); ClassDB::bind_method(D_METHOD("get_input"), &MMFillToPosition::get_input); ClassDB::bind_method(D_METHOD("set_input", "value"), &MMFillToPosition::set_input); - ADD_PROPERTY(PropertyInfo(Variant::OBJECT, "input", PROPERTY_HINT_RESOURCE_TYPE, "Ref"), "set_input", "get_input"); + ADD_PROPERTY(PropertyInfo(Variant::OBJECT, "input", PROPERTY_HINT_RESOURCE_TYPE, "MMNodeUniversalProperty"), "set_input", "get_input"); ClassDB::bind_method(D_METHOD("get_axis"), &MMFillToPosition::get_axis); ClassDB::bind_method(D_METHOD("set_axis", "value"), &MMFillToPosition::set_axis); diff --git a/modules/material_maker/nodes/gradient/circular_gradient.cpp b/modules/material_maker/nodes/gradient/circular_gradient.cpp index c88322f11..857eb6801 100644 --- a/modules/material_maker/nodes/gradient/circular_gradient.cpp +++ b/modules/material_maker/nodes/gradient/circular_gradient.cpp @@ -81,7 +81,7 @@ MMCircularGradient::~MMCircularGradient() { void MMCircularGradient::_bind_methods() { ClassDB::bind_method(D_METHOD("get_image"), &MMCircularGradient::get_image); ClassDB::bind_method(D_METHOD("set_image", "value"), &MMCircularGradient::set_image); - ADD_PROPERTY(PropertyInfo(Variant::OBJECT, "image", PROPERTY_HINT_RESOURCE_TYPE, "Ref"), "set_image", "get_image"); + ADD_PROPERTY(PropertyInfo(Variant::OBJECT, "image", PROPERTY_HINT_RESOURCE_TYPE, "MMNodeUniversalProperty"), "set_image", "get_image"); ClassDB::bind_method(D_METHOD("get_repeat"), &MMCircularGradient::get_repeat); ClassDB::bind_method(D_METHOD("set_repeat", "value"), &MMCircularGradient::set_repeat); diff --git a/modules/material_maker/nodes/sdf3d/sdf3d_render.cpp b/modules/material_maker/nodes/sdf3d/sdf3d_render.cpp index 4cd0faaa6..79f1d70eb 100644 --- a/modules/material_maker/nodes/sdf3d/sdf3d_render.cpp +++ b/modules/material_maker/nodes/sdf3d/sdf3d_render.cpp @@ -220,19 +220,19 @@ MMSdf3dRender::~MMSdf3dRender() { void MMSdf3dRender::_bind_methods() { ClassDB::bind_method(D_METHOD("get_input"), &MMSdf3dRender::get_input); ClassDB::bind_method(D_METHOD("set_input", "value"), &MMSdf3dRender::set_input); - ADD_PROPERTY(PropertyInfo(Variant::OBJECT, "input", PROPERTY_HINT_RESOURCE_TYPE, "Ref"), "set_input", "get_input"); + ADD_PROPERTY(PropertyInfo(Variant::OBJECT, "input", PROPERTY_HINT_RESOURCE_TYPE, "MMNodeUniversalProperty"), "set_input", "get_input"); ClassDB::bind_method(D_METHOD("get_out_height_map"), &MMSdf3dRender::get_out_height_map); ClassDB::bind_method(D_METHOD("set_out_height_map", "value"), &MMSdf3dRender::set_out_height_map); - ADD_PROPERTY(PropertyInfo(Variant::OBJECT, "out_height_map", PROPERTY_HINT_RESOURCE_TYPE, "Ref"), "set_out_height_map", "get_out_height_map"); + ADD_PROPERTY(PropertyInfo(Variant::OBJECT, "out_height_map", PROPERTY_HINT_RESOURCE_TYPE, "MMNodeUniversalProperty"), "set_out_height_map", "get_out_height_map"); ClassDB::bind_method(D_METHOD("get_out_normal_map"), &MMSdf3dRender::get_out_normal_map); ClassDB::bind_method(D_METHOD("set_out_normal_map", "value"), &MMSdf3dRender::set_out_normal_map); - ADD_PROPERTY(PropertyInfo(Variant::OBJECT, "out_normal_map", PROPERTY_HINT_RESOURCE_TYPE, "Ref"), "set_out_normal_map", "get_out_normal_map"); + ADD_PROPERTY(PropertyInfo(Variant::OBJECT, "out_normal_map", PROPERTY_HINT_RESOURCE_TYPE, "MMNodeUniversalProperty"), "set_out_normal_map", "get_out_normal_map"); ClassDB::bind_method(D_METHOD("get_out_color_map"), &MMSdf3dRender::get_out_color_map); ClassDB::bind_method(D_METHOD("set_out_color_map", "value"), &MMSdf3dRender::set_out_color_map); - ADD_PROPERTY(PropertyInfo(Variant::OBJECT, "out_color_map", PROPERTY_HINT_RESOURCE_TYPE, "Ref"), "set_out_color_map", "get_out_color_map"); + ADD_PROPERTY(PropertyInfo(Variant::OBJECT, "out_color_map", PROPERTY_HINT_RESOURCE_TYPE, "MMNodeUniversalProperty"), "set_out_color_map", "get_out_color_map"); ClassDB::bind_method(D_METHOD("sdf3d_raymarch", "uv"), &MMSdf3dRender::sdf3d_raymarch); ClassDB::bind_method(D_METHOD("sdf3d_normal", "p"), &MMSdf3dRender::sdf3d_normal);