Skip to content

Commit 4a2e5eb

Browse files
authored
Merge pull request #131 from CreepNT/topic/camera_instances_bug
Make the instance buttons in Model Viewer truly unique
2 parents cc6c044 + 66b6df8 commit 4a2e5eb

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Replanetizer/Frames/ModelFrame.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -286,10 +286,10 @@ private void RenderInstanceList()
286286
{
287287
foreach (ModelObject obj in selectedObjectInstances)
288288
{
289-
string objName = "Instance";
289+
string objName = $"Instance##{obj.globalID}";
290290
if (obj is Moby mob)
291291
{
292-
objName = $"Instance [" + GetStringFromID(mob.mobyID) + "]";
292+
objName = $"Instance [{GetStringFromID(mob.mobyID)}]##{mob.globalID}";
293293
}
294294

295295
if (ImGui.Button(objName))

0 commit comments

Comments
 (0)