Explorar o código

Merge pull request #33157 from nekomatata/natvis-node

Update natvis file to display Node class correctly in Visual Studio debugger
Rémi Verschelde %!s(int64=5) %!d(string=hai) anos
pai
achega
f480d1c3b7
Modificáronse 1 ficheiros con 8 adicións e 0 borrados
  1. 8 0
      platform/windows/godot.natvis

+ 8 - 0
platform/windows/godot.natvis

@@ -143,4 +143,12 @@
 			<Item Name="alpha">a</Item>
 		</Expand>
 	</Type>
+	
+	<Type Name="Node" Inheritable="false">
+		<Expand>
+			<Item Name="Object">(Object*)this</Item>
+			<Item Name="class_name">(StringName*)(((char*)this) + sizeof(Object))</Item>
+			<Item Name="data">(Node::Data*)(((char*)this) + sizeof(Object) + sizeof(StringName))</Item>
+		</Expand>
+	</Type>
 </AutoVisualizer>