Fix type name typo in Debug Adapter Protocol
This commit is contained in:
parent
01f184178b
commit
fb6aaacaed
3 changed files with 7 additions and 7 deletions
|
@ -161,7 +161,7 @@
|
||||||
<description>
|
<description>
|
||||||
Gets the remainder of each component of the [Vector3i] with the the given [int]. This operation uses truncated division, which is often not desired as it does not work well with negative numbers. Consider using [method @GlobalScope.posmod] instead if you want to handle negative numbers.
|
Gets the remainder of each component of the [Vector3i] with the the given [int]. This operation uses truncated division, which is often not desired as it does not work well with negative numbers. Consider using [method @GlobalScope.posmod] instead if you want to handle negative numbers.
|
||||||
[codeblock]
|
[codeblock]
|
||||||
print(Vector2i(10, -20, 30) % 7) # Prints "(3, -6, 2)"
|
print(Vector3i(10, -20, 30) % 7) # Prints "(3, -6, 2)"
|
||||||
[/codeblock]
|
[/codeblock]
|
||||||
</description>
|
</description>
|
||||||
</operator>
|
</operator>
|
||||||
|
|
|
@ -349,14 +349,14 @@ int DebugAdapterProtocol::parse_variant(const Variant &p_var) {
|
||||||
case Variant::BASIS: {
|
case Variant::BASIS: {
|
||||||
int id = variable_id++;
|
int id = variable_id++;
|
||||||
Basis basis = p_var;
|
Basis basis = p_var;
|
||||||
const String type_vec2 = Variant::get_type_name(Variant::VECTOR2);
|
const String type_vec3 = Variant::get_type_name(Variant::VECTOR3);
|
||||||
DAP::Variable x, y, z;
|
DAP::Variable x, y, z;
|
||||||
x.name = "x";
|
x.name = "x";
|
||||||
y.name = "y";
|
y.name = "y";
|
||||||
z.name = "z";
|
z.name = "z";
|
||||||
x.type = type_vec2;
|
x.type = type_vec3;
|
||||||
y.type = type_vec2;
|
y.type = type_vec3;
|
||||||
z.type = type_vec2;
|
z.type = type_vec3;
|
||||||
x.value = basis.elements[0];
|
x.value = basis.elements[0];
|
||||||
y.value = basis.elements[1];
|
y.value = basis.elements[1];
|
||||||
z.value = basis.elements[2];
|
z.value = basis.elements[2];
|
||||||
|
|
|
@ -2085,7 +2085,7 @@ EditorPropertyRect2i::EditorPropertyRect2i(bool p_force_wide) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
///////////////////// VECTOR3i /////////////////////////
|
///////////////////// VECTOR3I /////////////////////////
|
||||||
|
|
||||||
void EditorPropertyVector3i::_set_read_only(bool p_read_only) {
|
void EditorPropertyVector3i::_set_read_only(bool p_read_only) {
|
||||||
for (int i = 0; i < 3; i++) {
|
for (int i = 0; i < 3; i++) {
|
||||||
|
@ -2618,7 +2618,7 @@ EditorPropertyBasis::EditorPropertyBasis() {
|
||||||
set_bottom_editor(g);
|
set_bottom_editor(g);
|
||||||
}
|
}
|
||||||
|
|
||||||
///////////////////// TRANSFORM /////////////////////////
|
///////////////////// TRANSFORM3D /////////////////////////
|
||||||
|
|
||||||
void EditorPropertyTransform3D::_set_read_only(bool p_read_only) {
|
void EditorPropertyTransform3D::_set_read_only(bool p_read_only) {
|
||||||
for (int i = 0; i < 12; i++) {
|
for (int i = 0; i < 12; i++) {
|
||||||
|
|
Loading…
Reference in a new issue