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
85211559
Commit
85211559
authored
6 years ago
by
Julien Duroure
Browse files
Options
Downloads
Patches
Plain Diff
glTF exporter: Fix channel mixup
parent
0a232c94
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
io_scene_gltf2/blender/exp/gltf2_blender_gather_texture_info.py
+1
-1
1 addition, 1 deletion
...ne_gltf2/blender/exp/gltf2_blender_gather_texture_info.py
with
1 addition
and
1 deletion
io_scene_gltf2/blender/exp/gltf2_blender_gather_texture_info.py
+
1
−
1
View file @
85211559
...
...
@@ -54,7 +54,7 @@ def __filter_texture_info(blender_shader_sockets_or_texture_slots, export_settin
return
False
resolution
=
__get_tex_from_socket
(
blender_shader_sockets_or_texture_slots
[
0
]).
shader_node
.
image
.
size
if
any
(
__get_tex_from_socket
(
elem
).
shader_node
.
image
.
size
!=
resolution
if
any
(
any
(
a
!=
b
for
a
,
b
in
zip
(
__get_tex_from_socket
(
elem
).
shader_node
.
image
.
size
,
resolution
))
for
elem
in
blender_shader_sockets_or_texture_slots
):
def
format_image
(
image_node
):
return
"
{} ({}x{})
"
.
format
(
image_node
.
name
,
image_node
.
image
.
size
[
0
],
image_node
.
image
.
size
[
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