Skip to content

Commit 6366482

Browse files
committed
removed redundant call to clear in constructors
1 parent 06e85f3 commit 6366482

File tree

8 files changed

+21
-22
lines changed

8 files changed

+21
-22
lines changed

Packages/NativeTrees/CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
1+
v0.1.1
2+
- Removed redundant call to Clear in constructors
3+
14
v0.1
25
- Initial release

Packages/NativeTrees/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Generic sparse octree and quadtree
44
that store objects together with their axis aligned bounding boxes (AABB's)
55

66
Written in C# for Unity's burst compiler and the ECS/DOTS framework.
7-
Tested with Unity 2021.1.3.11f1
7+
Tested with Unity 2021.3.11f1
88

99
### Supported queries:
1010
- Raycast
@@ -33,7 +33,7 @@ Tested with Unity 2021.1.3.11f1
3333

3434
## Installation
3535

36-
Using the Unity package manager, choose Addd Package from git URL and enter:
36+
Using the Unity package manager, choose Add Package from git URL and enter:
3737

3838
https://github.com/bartofzo/NativeTrees.git?path=/Packages/NativeTrees
3939

Packages/NativeTrees/Runtime/Octree/NativeOctree.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,6 @@ public NativeOctree(AABB bounds, int objectsPerNode, int maxDepth, Allocator all
9191
this.boundsCenter = bounds.Center;
9292
this.boundsExtents = bounds.Size / 2;
9393
this.boundsQuarterSize = boundsExtents / 2;
94-
95-
Clear();
9694
}
9795

9896
/// <summary>

Packages/NativeTrees/Runtime/Quadtree/NativeQuadtree.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,6 @@ public NativeQuadtree(AABB2D bounds, int objectsPerNode, int maxDepth, Allocator
9191
this.boundsCenter = bounds.Center;
9292
this.boundsExtents = bounds.Size / 2;
9393
this.boundsQuarterSize = boundsExtents / 2;
94-
95-
Clear();
9694
}
9795

9896
/// <summary>

Packages/NativeTrees/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "com.bartofzo.nativetrees",
33
"displayName": "NativeTrees",
4-
"version": "0.1.0",
4+
"version": "0.1.1",
55
"unity": "2021.3",
66
"description": "Generic, burst compatible sparse octree and quadtree \nthat store objects together with their axis aligned bounding boxes (AABB's)",
77
"keywords": [

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ Tested with Unity 2021.3.11f1
3333

3434
## Installation
3535

36-
Using the Unity package manager, choose Addd Package from git URL and enter:
36+
Using the Unity package manager, choose Add Package from git URL and enter:
3737

3838
https://github.com/bartofzo/NativeTrees.git?path=/Packages/NativeTrees
3939

UserSettings/EditorUserSettings.asset

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ EditorUserSettings:
1212
value: 5202010301075909585e5e7711770d45174e1e7d7829203228781931b1e3366f
1313
flags: 0
1414
RecentlyUsedSceneGuid-2:
15-
value: 5055555e030c0a0f585b5f2012770b131016482e297b2433757c4e60b5b4316b
15+
value: 5a5757560101590a5d0c0e24427b5d44434e4c7a7b7a23677f2b4565b7b5353a
1616
flags: 0
1717
RecentlyUsedSceneGuid-3:
18-
value: 5a5757560101590a5d0c0e24427b5d44434e4c7a7b7a23677f2b4565b7b5353a
18+
value: 5055555e030c0a0f585b5f2012770b131016482e297b2433757c4e60b5b4316b
1919
flags: 0
2020
vcSharedLogLevel:
2121
value: 0d5e400f0650

UserSettings/Layouts/default-2021.dwlt

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,8 @@ MonoBehaviour:
6767
y: 0
6868
width: 1463
6969
height: 893
70-
m_MinSize: {x: 800, y: 250}
71-
m_MaxSize: {x: 4000, y: 4000}
70+
m_MinSize: {x: 800, y: 271}
71+
m_MaxSize: {x: 4000, y: 4021}
7272
m_ActualView: {fileID: 15}
7373
m_Panes:
7474
- {fileID: 15}
@@ -97,7 +97,7 @@ MonoBehaviour:
9797
m_MinSize: {x: 800, y: 271}
9898
m_MaxSize: {x: 4000, y: 4021}
9999
vertical: 0
100-
controlID: 958
100+
controlID: 15
101101
--- !u!114 &5
102102
MonoBehaviour:
103103
m_ObjectHideFlags: 52
@@ -122,7 +122,7 @@ MonoBehaviour:
122122
m_MinSize: {x: 300, y: 200}
123123
m_MaxSize: {x: 24288, y: 16192}
124124
vertical: 0
125-
controlID: 77
125+
controlID: 76
126126
--- !u!114 &6
127127
MonoBehaviour:
128128
m_ObjectHideFlags: 52
@@ -297,7 +297,7 @@ MonoBehaviour:
297297
m_MinSize: {x: 200, y: 200}
298298
m_MaxSize: {x: 16192, y: 16192}
299299
vertical: 1
300-
controlID: 78
300+
controlID: 77
301301
--- !u!114 &13
302302
MonoBehaviour:
303303
m_ObjectHideFlags: 52
@@ -322,7 +322,7 @@ MonoBehaviour:
322322
m_MinSize: {x: 200, y: 100}
323323
m_MaxSize: {x: 16192, y: 8096}
324324
vertical: 0
325-
controlID: 79
325+
controlID: 78
326326
--- !u!114 &14
327327
MonoBehaviour:
328328
m_ObjectHideFlags: 52
@@ -526,7 +526,7 @@ MonoBehaviour:
526526
scrollPos: {x: 0, y: 0}
527527
m_SelectedIDs: f6440000
528528
m_LastClickedID: 17654
529-
m_ExpandedIDs: 00000000d8440000da440000dc440000de440000ffffff7f
529+
m_ExpandedIDs: 0000000036450000384500003a4500003c450000
530530
m_RenameOverlay:
531531
m_UserAcceptedRename: 0
532532
m_Name:
@@ -554,7 +554,7 @@ MonoBehaviour:
554554
scrollPos: {x: 0, y: 0}
555555
m_SelectedIDs:
556556
m_LastClickedID: 0
557-
m_ExpandedIDs: 00000000d8440000da440000dc440000de440000
557+
m_ExpandedIDs: 0000000036450000384500003a4500003c450000
558558
m_RenameOverlay:
559559
m_UserAcceptedRename: 0
560560
m_Name:
@@ -682,9 +682,9 @@ MonoBehaviour:
682682
m_SceneHierarchy:
683683
m_TreeViewState:
684684
scrollPos: {x: 0, y: 0}
685-
m_SelectedIDs: 9a440000
686-
m_LastClickedID: 17562
687-
m_ExpandedIDs: 2efbffff
685+
m_SelectedIDs:
686+
m_LastClickedID: 0
687+
m_ExpandedIDs: 34fbffff
688688
m_RenameOverlay:
689689
m_UserAcceptedRename: 0
690690
m_Name:
@@ -984,7 +984,7 @@ MonoBehaviour:
984984
m_Rotation:
985985
m_Target: {x: -0.00014344699, y: 0.9927727, z: -0.12001943, w: -0.0011910849}
986986
speed: 2
987-
m_Value: {x: -0.00014344673, y: 0.9927709, z: -0.12001921, w: -0.0011910828}
987+
m_Value: {x: -0.00014344699, y: 0.9927727, z: -0.12001942, w: -0.0011910849}
988988
m_Size:
989989
m_Target: 1.2247449
990990
speed: 2

0 commit comments

Comments
 (0)