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
4af27475
Commit
4af27475
authored
May 04, 2020
by
qarmin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixes type of array in _set_outlines function
parent
316b60aa
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
navigation_region_2d.cpp
scene/2d/navigation_region_2d.cpp
+1
-1
navigation_region_2d.h
scene/2d/navigation_region_2d.h
+1
-1
No files found.
scene/2d/navigation_region_2d.cpp
View file @
4af27475
...
@@ -118,7 +118,7 @@ Array NavigationPolygon::_get_polygons() const {
...
@@ -118,7 +118,7 @@ Array NavigationPolygon::_get_polygons() const {
return
ret
;
return
ret
;
}
}
void
NavigationPolygon
::
_set_outlines
(
const
TypedArray
<
Vector
<
int32_t
>>
&
p_array
)
{
void
NavigationPolygon
::
_set_outlines
(
const
TypedArray
<
Vector
<
Vector2
>>
&
p_array
)
{
outlines
.
resize
(
p_array
.
size
());
outlines
.
resize
(
p_array
.
size
());
for
(
int
i
=
0
;
i
<
p_array
.
size
();
i
++
)
{
for
(
int
i
=
0
;
i
<
p_array
.
size
();
i
++
)
{
...
...
scene/2d/navigation_region_2d.h
View file @
4af27475
...
@@ -58,7 +58,7 @@ protected:
...
@@ -58,7 +58,7 @@ protected:
void
_set_polygons
(
const
TypedArray
<
Vector
<
int32_t
>>
&
p_array
);
void
_set_polygons
(
const
TypedArray
<
Vector
<
int32_t
>>
&
p_array
);
Array
_get_polygons
()
const
;
Array
_get_polygons
()
const
;
void
_set_outlines
(
const
TypedArray
<
Vector
<
int32_t
>>
&
p_array
);
void
_set_outlines
(
const
TypedArray
<
Vector
<
Vector2
>>
&
p_array
);
Array
_get_outlines
()
const
;
Array
_get_outlines
()
const
;
public
:
public
:
...
...
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