Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Ablesons
three.js
提交
b9c9eb09
T
three.js
项目概览
Ablesons
/
three.js
与 Fork 源项目一致
从无法访问的项目Fork
通知
2
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
three.js
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
b9c9eb09
编写于
5月 04, 2012
作者:
A
alteredq
提交者:
Mr.doob
5月 05, 2012
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fixed texture coordinates export in Blender 2.63 exporter.
Fixes #1866
上级
07b1c446
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
11 addition
and
11 deletion
+11
-11
utils/exporters/blender/2.63/scripts/addons/io_mesh_threejs/export_threejs.py
...der/2.63/scripts/addons/io_mesh_threejs/export_threejs.py
+11
-11
未找到文件。
utils/exporters/blender/2.63/scripts/addons/io_mesh_threejs/export_threejs.py
浏览文件 @
b9c9eb09
...
...
@@ -296,7 +296,7 @@ def get_normal_indices(v, normals, mesh):
def
get_uv_indices
(
face_index
,
uvs
,
mesh
):
uv
=
[]
uv_layer
=
mesh
.
uv_textures
.
active
.
data
uv_layer
=
mesh
.
tessface_
uv_textures
.
active
.
data
for
i
in
uv_layer
[
face_index
].
uv
:
uv
.
append
(
uvs
[
veckey2d
(
i
)]
)
return
uv
...
...
@@ -637,7 +637,7 @@ def generate_vertex_colors(colors, option_colors):
# #####################################################
def
extract_uvs
(
mesh
,
uvs
,
count
):
uv_layer
=
mesh
.
uv_textures
.
active
.
data
uv_layer
=
mesh
.
tessface_
uv_textures
.
active
.
data
for
face_index
,
face
in
enumerate
(
get_faces
(
mesh
)):
...
...
@@ -1760,20 +1760,20 @@ def generate_ascii_scene(data):
def
export_scene
(
scene
,
filepath
,
flipyz
,
option_colors
,
option_lights
,
option_cameras
,
option_embed_meshes
,
embeds
,
option_url_base_html
,
option_copy_textures
):
source_file
=
os
.
path
.
basename
(
bpy
.
data
.
filepath
)
# objects are contained in scene and linked groups
objects
=
[]
# get scene objects
sceneobjects
=
scene
.
objects
for
obj
in
sceneobjects
:
objects
.
append
(
obj
)
# get linked group objcts
# get linked group objcts
for
group
in
bpy
.
data
.
groups
:
for
object
in
group
.
objects
:
objects
.
append
(
object
)
scene_text
=
""
data
=
{
"scene"
:
scene
,
...
...
@@ -1834,15 +1834,15 @@ def save(operator, context, filepath = "",
# objects are contained in scene and linked groups
objects
=
[]
# get scene objects
for
obj
in
sceneobjects
:
objects
.
append
(
obj
)
# get objects in linked groups
# get objects in linked groups
for
group
in
bpy
.
data
.
groups
:
for
object
in
group
.
objects
:
objects
.
append
(
object
)
objects
.
append
(
object
)
if
option_export_scene
:
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录