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
2f425cc1
Commit
2f425cc1
authored
5 years ago
by
Mikhail Rachinskiy
Browse files
Options
Downloads
Patches
Plain Diff
STL: fix T72145 crash exporting object without data
parent
5f1ad507
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
io_mesh_stl/blender_utils.py
+3
-1
3 additions, 1 deletion
io_mesh_stl/blender_utils.py
with
3 additions
and
1 deletion
io_mesh_stl/blender_utils.py
+
3
−
1
View file @
2f425cc1
...
@@ -80,7 +80,8 @@ def faces_from_mesh(ob, global_matrix, use_mesh_modifiers=False):
...
@@ -80,7 +80,8 @@ def faces_from_mesh(ob, global_matrix, use_mesh_modifiers=False):
import
bpy
import
bpy
# get the editmode data
# get the editmode data
ob
.
update_from_editmode
()
if
ob
.
mode
==
"
EDIT
"
:
ob
.
update_from_editmode
()
# get the modifiers
# get the modifiers
if
use_mesh_modifiers
:
if
use_mesh_modifiers
:
...
@@ -94,6 +95,7 @@ def faces_from_mesh(ob, global_matrix, use_mesh_modifiers=False):
...
@@ -94,6 +95,7 @@ def faces_from_mesh(ob, global_matrix, use_mesh_modifiers=False):
mesh
=
mesh_owner
.
to_mesh
()
mesh
=
mesh_owner
.
to_mesh
()
except
RuntimeError
:
except
RuntimeError
:
return
return
if
mesh
is
None
:
if
mesh
is
None
:
return
return
...
...
This diff is collapsed.
Click to expand it.
Milan Jaros
@milanjaros
mentioned in commit
14420434
·
5 years ago
mentioned in commit
14420434
mentioned in commit 14420434d2aa4c0c1d7897440e40f1656ea57de0
Toggle commit list
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