Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
godot
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
community
godot
Commits
1c23a0cc
Unverified
Commit
1c23a0cc
authored
May 05, 2020
by
Rémi Verschelde
Committed by
GitHub
May 05, 2020
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #38465 from madmiraal/fix-38457
Check for empty vectors before trying to access a pointer to the first element in Octree<T, use_pairs, AL>::cull_convex().
parents
2435d4bd
54c36adb
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
octree.h
core/math/octree.h
+3
-1
No files found.
core/math/octree.h
View file @
1c23a0cc
...
...
@@ -1290,10 +1290,12 @@ void Octree<T, use_pairs, AL>::_cull_point(Octant *p_octant, const Vector3 &p_po
template
<
class
T
,
bool
use_pairs
,
class
AL
>
int
Octree
<
T
,
use_pairs
,
AL
>::
cull_convex
(
const
Vector
<
Plane
>
&
p_convex
,
T
**
p_result_array
,
int
p_result_max
,
uint32_t
p_mask
)
{
if
(
!
root
)
if
(
!
root
||
p_convex
.
size
()
==
0
)
return
0
;
Vector
<
Vector3
>
convex_points
=
Geometry
::
compute_convex_mesh_points
(
&
p_convex
[
0
],
p_convex
.
size
());
if
(
convex_points
.
size
()
==
0
)
return
0
;
int
result_count
=
0
;
pass
++
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment