Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
OpenMesh
openmesh-python
Commits
b3189504
Commit
b3189504
authored
Jul 10, 2018
by
Alexander Dielen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
allow scalars in property_array functions (fixes
#22
)
parent
ed435703
Pipeline
#7296
passed with stages
in 5 minutes and 48 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/MeshTypes.hh
src/MeshTypes.hh
+1
-1
No files found.
src/MeshTypes.hh
View file @
b3189504
...
...
@@ -140,7 +140,7 @@ public:
PyErr_SetString
(
PyExc_RuntimeError
,
"Array shapes do not match."
);
throw
py
::
error_already_set
();
}
std
::
copy
(
arr
.
data
(
0
),
arr
.
data
(
0
)
+
size
,
&
data
[
size
*
i
]);
std
::
copy
(
arr
.
data
(),
arr
.
data
()
+
size
,
&
data
[
size
*
i
]);
}
return
py
::
array_t
<
double
>
(
shape
,
strides
,
data
,
base
);
...
...
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