Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
blender-addons
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-addons
Commits
308fce87
Commit
308fce87
authored
12 years ago
by
Campbell Barton
Browse files
Options
Downloads
Patches
Plain Diff
minor edits, convert the scale arg to a tuple
parent
93226d01
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
object_fracture_cell/fracture_cell_calc.py
+3
-9
3 additions, 9 deletions
object_fracture_cell/fracture_cell_calc.py
with
3 additions
and
9 deletions
object_fracture_cell/fracture_cell_calc.py
+
3
−
9
View file @
308fce87
...
...
@@ -31,19 +31,13 @@ def points_as_bmesh_cells(verts,
from
mathutils
import
Vector
cells
=
[]
'''
if points_scale:
points_scale = (1.0 / points_scale[0],
1.0 / points_scale[1],
1.0 / points_scale[2],
)
'''
points_sorted_current
=
[
p
for
p
in
points
]
plane_indices
=
[]
vertices
=
[]
if
points_scale
is
not
None
:
points_scale
=
tuple
(
points_scale
)
if
points_scale
==
(
1.0
,
1.0
,
1.0
):
points_scale
=
None
...
...
@@ -79,7 +73,7 @@ def points_as_bmesh_cells(verts,
normal
=
points_sorted_current
[
j
]
-
point_cell_current
nlength
=
normal
.
length
if
points_scale
is
not
None
:
if
points_scale
is
not
None
:
normal_alt
=
normal
.
copy
()
normal_alt
.
x
*=
points_scale
[
0
]
normal_alt
.
y
*=
points_scale
[
1
]
...
...
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