Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
blender-embree3
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
blender
blender-embree3
Commits
cf8028e4
Commit
cf8028e4
authored
7 years ago
by
Campbell Barton
Browse files
Options
Downloads
Plain Diff
Merge branch 'blender2.8' into temp-object-multi-mode
parents
7ed100f1
8859927e
Branches
temp-object-multi-mode
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
source/blender/blenlib/BLI_hash.h
+1
-1
1 addition, 1 deletion
source/blender/blenlib/BLI_hash.h
source/blender/python/mathutils/mathutils_geometry.c
+9
-9
9 additions, 9 deletions
source/blender/python/mathutils/mathutils_geometry.c
with
10 additions
and
10 deletions
source/blender/blenlib/BLI_hash.h
+
1
−
1
View file @
cf8028e4
...
...
@@ -72,7 +72,7 @@ BLI_INLINE void BLI_hash_pointer_to_color(const void *ptr, int *r, int *g, int *
{
size_t
val
=
(
size_t
)
ptr
;
const
size_t
hash_a
=
BLI_hash_int
(
val
&
0x0000ffff
);
const
size_t
hash_b
=
BLI_hash_int
((
val
&
0xffff0000
)
>>
32
);
const
size_t
hash_b
=
BLI_hash_int
((
uint
)((
val
&
0xffff0000
)
>>
32
)
)
;
const
size_t
hash
=
hash_a
^
(
hash_b
+
0x9e3779b9
+
(
hash_a
<<
6
)
+
(
hash_a
>>
2
));
*
r
=
(
hash
&
0xff0000
)
>>
16
;
...
...
This diff is collapsed.
Click to expand it.
source/blender/python/mathutils/mathutils_geometry.c
+
9
−
9
View file @
cf8028e4
...
...
@@ -742,7 +742,7 @@ static PyObject *M_Geometry_intersect_point_line(PyObject *UNUSED(self), PyObjec
float
lambda
;
PyObject
*
ret
;
int
size
=
2
;
if
(
!
PyArg_ParseTuple
(
args
,
"OOO:intersect_point_line"
,
&
py_pt
,
&
py_line_a
,
&
py_line_b
))
...
...
@@ -760,7 +760,7 @@ static PyObject *M_Geometry_intersect_point_line(PyObject *UNUSED(self), PyObjec
/* do the calculation */
lambda
=
closest_to_line_v3
(
pt_out
,
pt
,
line_a
,
line_b
);
ret
=
PyTuple_New
(
2
);
PyTuple_SET_ITEMS
(
ret
,
Vector_CreatePyObject
(
pt_out
,
size
,
NULL
),
...
...
@@ -882,7 +882,7 @@ static PyObject *M_Geometry_intersect_point_quad_2d(PyObject *UNUSED(self), PyOb
PyObject
*
py_pt
,
*
py_quad
[
4
];
float
pt
[
2
],
quad
[
4
][
2
];
int
i
;
if
(
!
PyArg_ParseTuple
(
args
,
"OOOOO:intersect_point_quad_2d"
,
&
py_pt
,
UNPACK4_EX
(
&
,
py_quad
,
)))
...
...
@@ -954,12 +954,12 @@ PyDoc_STRVAR(M_Geometry_barycentric_transform_doc,
" :type tri_a2: :class:`mathutils.Vector`
\n
"
" :arg tri_a3: source triangle vertex.
\n
"
" :type tri_a3: :class:`mathutils.Vector`
\n
"
" :arg tri_
a
1: target triangle vertex.
\n
"
" :type tri_
a
1: :class:`mathutils.Vector`
\n
"
" :arg tri_
a
2: target triangle vertex.
\n
"
" :type tri_
a
2: :class:`mathutils.Vector`
\n
"
" :arg tri_
a
3: target triangle vertex.
\n
"
" :type tri_
a
3: :class:`mathutils.Vector`
\n
"
" :arg tri_
b
1: target triangle vertex.
\n
"
" :type tri_
b
1: :class:`mathutils.Vector`
\n
"
" :arg tri_
b
2: target triangle vertex.
\n
"
" :type tri_
b
2: :class:`mathutils.Vector`
\n
"
" :arg tri_
b
3: target triangle vertex.
\n
"
" :type tri_
b
3: :class:`mathutils.Vector`
\n
"
" :return: The transformed point
\n
"
" :rtype: :class:`mathutils.Vector`'s
\n
"
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment