Skip to content

Commit

Permalink
Hide template_overrides and template_defaults property from the inspe…
Browse files Browse the repository at this point in the history
…ctor in HTMLTemplate.
  • Loading branch information
Relintai committed Feb 25, 2024
1 parent ce638a6 commit c6c864a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/web/html/html_template.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ void HTMLTemplate::_bind_methods() {

ClassDB::bind_method(D_METHOD("get_template_overrides"), &HTMLTemplate::get_template_overrides);
ClassDB::bind_method(D_METHOD("set_template_overrides", "dict"), &HTMLTemplate::set_template_overrides);
ADD_PROPERTY(PropertyInfo(Variant::DICTIONARY, "template_overrides"), "set_template_overrides", "get_template_overrides");
ADD_PROPERTY(PropertyInfo(Variant::DICTIONARY, "template_overrides", PROPERTY_HINT_NONE, "", 0), "set_template_overrides", "get_template_overrides");

// Defaults
ClassDB::bind_method(D_METHOD("has_template_default", "name"), &HTMLTemplate::has_template_default);
Expand All @@ -303,7 +303,7 @@ void HTMLTemplate::_bind_methods() {

ClassDB::bind_method(D_METHOD("get_template_defaults"), &HTMLTemplate::get_template_defaults);
ClassDB::bind_method(D_METHOD("set_template_defaults", "dict"), &HTMLTemplate::set_template_defaults);
ADD_PROPERTY(PropertyInfo(Variant::DICTIONARY, "template_defaults"), "set_template_defaults", "get_template_defaults");
ADD_PROPERTY(PropertyInfo(Variant::DICTIONARY, "template_defaults", PROPERTY_HINT_NONE, "", 0), "set_template_defaults", "get_template_defaults");

// Use

Expand Down

0 comments on commit c6c864a

Please sign in to comment.