Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
eos
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Richard Torenvliet
eos
Commits
1649e363
Commit
1649e363
authored
Dec 15, 2016
by
Patrik Huber
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replaced deprecated .check() with call to operator bool
pybind11 deprecated .check().
parent
98a58300
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
python/pybind11_glm.hpp
python/pybind11_glm.hpp
+6
-6
No files found.
python/pybind11_glm.hpp
View file @
1649e363
...
@@ -44,7 +44,7 @@ struct type_caster<glm::tvec2<T, P>>
...
@@ -44,7 +44,7 @@ struct type_caster<glm::tvec2<T, P>>
bool
load
(
handle
src
,
bool
)
bool
load
(
handle
src
,
bool
)
{
{
array_t
<
Scalar
>
buf
(
src
,
true
);
array_t
<
Scalar
>
buf
(
src
,
true
);
if
(
!
buf
.
check
()
)
if
(
!
buf
)
return
false
;
return
false
;
if
(
buf
.
ndim
()
==
1
)
// a 1-dimensional vector
if
(
buf
.
ndim
()
==
1
)
// a 1-dimensional vector
...
@@ -88,7 +88,7 @@ struct type_caster<glm::tvec3<T, P>>
...
@@ -88,7 +88,7 @@ struct type_caster<glm::tvec3<T, P>>
bool
load
(
handle
src
,
bool
)
bool
load
(
handle
src
,
bool
)
{
{
array_t
<
Scalar
>
buf
(
src
,
true
);
array_t
<
Scalar
>
buf
(
src
,
true
);
if
(
!
buf
.
check
()
)
if
(
!
buf
)
return
false
;
return
false
;
if
(
buf
.
ndim
()
==
1
)
// a 1-dimensional vector
if
(
buf
.
ndim
()
==
1
)
// a 1-dimensional vector
...
@@ -132,7 +132,7 @@ struct type_caster<glm::tvec4<T, P>>
...
@@ -132,7 +132,7 @@ struct type_caster<glm::tvec4<T, P>>
bool
load
(
handle
src
,
bool
)
bool
load
(
handle
src
,
bool
)
{
{
array_t
<
Scalar
>
buf
(
src
,
true
);
array_t
<
Scalar
>
buf
(
src
,
true
);
if
(
!
buf
.
check
()
)
if
(
!
buf
)
return
false
;
return
false
;
if
(
buf
.
ndim
()
==
1
)
// a 1-dimensional vector
if
(
buf
.
ndim
()
==
1
)
// a 1-dimensional vector
...
@@ -177,7 +177,7 @@ struct type_caster<glm::tmat3x3<T, P>>
...
@@ -177,7 +177,7 @@ struct type_caster<glm::tmat3x3<T, P>>
bool
load
(
handle
src
,
bool
)
bool
load
(
handle
src
,
bool
)
{
{
array_t
<
Scalar
>
buf
(
src
,
true
);
array_t
<
Scalar
>
buf
(
src
,
true
);
if
(
!
buf
.
check
()
)
if
(
!
buf
)
return
false
;
return
false
;
if
(
buf
.
ndim
()
==
2
)
// a 2-dimensional matrix
if
(
buf
.
ndim
()
==
2
)
// a 2-dimensional matrix
...
@@ -225,7 +225,7 @@ struct type_caster<glm::tmat4x3<T, P>>
...
@@ -225,7 +225,7 @@ struct type_caster<glm::tmat4x3<T, P>>
bool
load
(
handle
src
,
bool
)
bool
load
(
handle
src
,
bool
)
{
{
array_t
<
Scalar
>
buf
(
src
,
true
);
array_t
<
Scalar
>
buf
(
src
,
true
);
if
(
!
buf
.
check
()
)
if
(
!
buf
)
return
false
;
return
false
;
if
(
buf
.
ndim
()
==
2
)
// a 2-dimensional matrix
if
(
buf
.
ndim
()
==
2
)
// a 2-dimensional matrix
...
@@ -273,7 +273,7 @@ struct type_caster<glm::tmat4x4<T, P>>
...
@@ -273,7 +273,7 @@ struct type_caster<glm::tmat4x4<T, P>>
bool
load
(
handle
src
,
bool
)
bool
load
(
handle
src
,
bool
)
{
{
array_t
<
Scalar
>
buf
(
src
,
true
);
array_t
<
Scalar
>
buf
(
src
,
true
);
if
(
!
buf
.
check
()
)
if
(
!
buf
)
return
false
;
return
false
;
if
(
buf
.
ndim
()
==
2
)
// a 2-dimensional matrix
if
(
buf
.
ndim
()
==
2
)
// a 2-dimensional matrix
...
...
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