mirror of
https://github.com/godotengine/godot.git
synced 2025-10-24 10:23:28 +00:00
Merge pull request #71479 from raulsntos/virtual-return-type
Use enum instead of int in virtual methods return type
This commit is contained in:
commit
e8240031e7
41 changed files with 114 additions and 110 deletions
|
|
@ -6570,7 +6570,7 @@ bool EditorInspectorVisualShaderModePlugin::can_handle(Object *p_object) {
|
|||
return true; // Can handle everything.
|
||||
}
|
||||
|
||||
bool EditorInspectorVisualShaderModePlugin::parse_property(Object *p_object, const Variant::Type p_type, const String &p_path, const PropertyHint p_hint, const String &p_hint_text, const uint32_t p_usage, const bool p_wide) {
|
||||
bool EditorInspectorVisualShaderModePlugin::parse_property(Object *p_object, const Variant::Type p_type, const String &p_path, const PropertyHint p_hint, const String &p_hint_text, const BitField<PropertyUsageFlags> p_usage, const bool p_wide) {
|
||||
if (p_path == "mode" && p_object->is_class("VisualShader") && p_type == Variant::INT) {
|
||||
EditorPropertyVisualShaderMode *mode_editor = memnew(EditorPropertyVisualShaderMode);
|
||||
Vector<String> options = p_hint_text.split(",");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue