From 919d2693c0db438a2bd7d255dc2cf48c3bbdc94b Mon Sep 17 00:00:00 2001 From: Aras Pranckevicius Date: Wed, 14 May 2025 14:45:40 +0200 Subject: [PATCH] Build: expand Visual Studio natvis file Expand the natvis file (which VS IDE debugger uses to visualize custom data types) to handle: - blender::Map with pointer keys - blender::Set with both regular and pointer keys Pull Request: https://projects.blender.org/blender/blender/pulls/138866 --- tools/utils_ide/natvis/Blender.natvis | 59 +++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) diff --git a/tools/utils_ide/natvis/Blender.natvis b/tools/utils_ide/natvis/Blender.natvis index ac141879470..ada52cb7eee 100644 --- a/tools/utils_ide/natvis/Blender.natvis +++ b/tools/utils_ide/natvis/Blender.natvis @@ -37,6 +37,25 @@ + + + Size={occupied_and_removed_slots_ - removed_slots_} + + + + + + + + slot->value_buffer_ + ++i + + ++slot + + + + + Size={occupied_and_removed_slots_ - removed_slots_} @@ -51,8 +70,48 @@ + + + + Size={occupied_and_removed_slots_ - removed_slots_} + + + + + + + + slot->key_ + ++i + + ++slot + + + + + + Size={occupied_and_removed_slots_ - removed_slots_} + + + + + + + + slot->key_buffer_ + ++i + + ++slot + + + + + {*($T1*)buffer_.buffer_.buffer_} + + *($T1*)buffer_.buffer_.buffer_,nd + \ No newline at end of file