Преглед на файлове

Enlarge Vector3 constant node in visual shaders

Chaosus преди 6 години
родител
ревизия
eb53c0fb32
променени са 1 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 2 2
      editor/plugins/visual_shader_editor_plugin.cpp

+ 2 - 2
editor/plugins/visual_shader_editor_plugin.cpp

@@ -1852,9 +1852,9 @@ Control *VisualShaderNodePluginDefault::create_editor(const Ref<VisualShaderNode
 		if (Object::cast_to<EditorPropertyResource>(prop)) {
 			Object::cast_to<EditorPropertyResource>(prop)->set_use_sub_inspector(false);
 			prop->set_custom_minimum_size(Size2(100 * EDSCALE, 0));
-		} else if (Object::cast_to<EditorPropertyTransform>(prop)) {
+		} else if (Object::cast_to<EditorPropertyTransform>(prop) || Object::cast_to<EditorPropertyVector3>(prop)) {
 			prop->set_custom_minimum_size(Size2(250 * EDSCALE, 0));
-		} else if (Object::cast_to<EditorPropertyFloat>(prop) || Object::cast_to<EditorPropertyVector3>(prop)) {
+		} else if (Object::cast_to<EditorPropertyFloat>(prop)) {
 			prop->set_custom_minimum_size(Size2(100 * EDSCALE, 0));
 		} else if (Object::cast_to<EditorPropertyEnum>(prop)) {
 			prop->set_custom_minimum_size(Size2(100 * EDSCALE, 0));