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
bb77e697
Commit
bb77e697
authored
2 years ago
by
Julien Duroure
Browse files
Options
Downloads
Patches
Plain Diff
glTF exporter: avoid crash when apply modifiers + shapekeys
parent
ddc05b91
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
io_scene_gltf2/__init__.py
+1
-1
1 addition, 1 deletion
io_scene_gltf2/__init__.py
io_scene_gltf2/blender/exp/gltf2_blender_extract.py
+2
-1
2 additions, 1 deletion
io_scene_gltf2/blender/exp/gltf2_blender_extract.py
with
3 additions
and
2 deletions
io_scene_gltf2/__init__.py
+
1
−
1
View file @
bb77e697
...
...
@@ -4,7 +4,7 @@
bl_info
=
{
'
name
'
:
'
glTF 2.0 format
'
,
'
author
'
:
'
Julien Duroure, Scurest, Norbert Nopper, Urs Hanselmann, Moritz Becher, Benjamin Schmithüsen, Jim Eckerlein, and many external contributors
'
,
"
version
"
:
(
3
,
4
,
1
7
),
"
version
"
:
(
3
,
4
,
1
8
),
'
blender
'
:
(
3
,
3
,
0
),
'
location
'
:
'
File > Import-Export
'
,
'
description
'
:
'
Import-Export as glTF 2.0
'
,
...
...
This diff is collapsed.
Click to expand it.
io_scene_gltf2/blender/exp/gltf2_blender_extract.py
+
2
−
1
View file @
bb77e697
...
...
@@ -81,7 +81,8 @@ def extract_primitives(blender_mesh, uuid_for_skined_data, blender_vertex_groups
use_morph_tangents
=
use_morph_normals
and
use_tangents
and
export_settings
[
gltf2_blender_export_keys
.
MORPH_TANGENT
]
key_blocks
=
[]
if
blender_mesh
.
shape_keys
and
export_settings
[
gltf2_blender_export_keys
.
MORPH
]:
# Shape Keys can't be retrieve when using Apply Modifiers (Blender/bpy limitation)
if
export_settings
[
gltf2_blender_export_keys
.
APPLY
]
is
False
and
blender_mesh
.
shape_keys
and
export_settings
[
gltf2_blender_export_keys
.
MORPH
]:
key_blocks
=
[
key_block
for
key_block
in
blender_mesh
.
shape_keys
.
key_blocks
...
...
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