Skip to content

Commit

Permalink
fix: 🐛 Fix Bounding Box not updating on Group Name Change
Browse files Browse the repository at this point in the history
  • Loading branch information
Marco Klein committed May 26, 2023
1 parent a08afe7 commit caf1a64
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions Source/Visuals/Model3D.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
using System;
using System.Collections.Generic;
using System.Linq;
using Godot;
Expand Down Expand Up @@ -64,8 +65,18 @@ public Node3D Model {
}
}


public string GroupName { get; set; } = "Mesh";
private string _groupName;
public string GroupName {
get {
return this._groupName;
}
set {
this._groupName = value;
if (this._size != Vector3.Inf) {
UpdateBoundingBox();
}
}
}

private SizeCalculationMode _calculcationMode = SizeCalculationMode.Group;
public SizeCalculationMode CalculationMode {
Expand Down

0 comments on commit caf1a64

Please sign in to comment.