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
251e10b5
Commit
251e10b5
authored
14 years ago
by
Campbell Barton
Browse files
Options
Downloads
Patches
Plain Diff
writing nurbs curves now uses max 6 decimal places. rename use_modifiers --> use_apply_modifiers
parent
e073c568
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
io_scene_obj/__init__.py
+1
-1
1 addition, 1 deletion
io_scene_obj/__init__.py
io_scene_obj/export_obj.py
+4
-4
4 additions, 4 deletions
io_scene_obj/export_obj.py
with
5 additions
and
5 deletions
io_scene_obj/__init__.py
+
1
−
1
View file @
251e10b5
...
@@ -90,7 +90,7 @@ class ExportOBJ(bpy.types.Operator, ExportHelper):
...
@@ -90,7 +90,7 @@ class ExportOBJ(bpy.types.Operator, ExportHelper):
use_animation
=
BoolProperty
(
name
=
"
Animation
"
,
description
=
""
,
default
=
False
)
use_animation
=
BoolProperty
(
name
=
"
Animation
"
,
description
=
""
,
default
=
False
)
# object group
# object group
use_modifiers
=
BoolProperty
(
name
=
"
Apply Modifiers
"
,
description
=
"
Apply modifiers (preview resolution)
"
,
default
=
True
)
use_
apply_
modifiers
=
BoolProperty
(
name
=
"
Apply Modifiers
"
,
description
=
"
Apply modifiers (preview resolution)
"
,
default
=
True
)
use_rotate_x90
=
BoolProperty
(
name
=
"
Rotate X90
"
,
description
=
""
,
default
=
True
)
use_rotate_x90
=
BoolProperty
(
name
=
"
Rotate X90
"
,
description
=
""
,
default
=
True
)
# extra data group
# extra data group
...
...
This diff is collapsed.
Click to expand it.
io_scene_obj/export_obj.py
+
4
−
4
View file @
251e10b5
...
@@ -232,7 +232,7 @@ def write_nurb(file, ob, ob_mat):
...
@@ -232,7 +232,7 @@ def write_nurb(file, ob, ob_mat):
pt_num
+=
DEG_ORDER_U
pt_num
+=
DEG_ORDER_U
curve_ls
=
curve_ls
+
curve_ls
[
0
:
DEG_ORDER_U
]
curve_ls
=
curve_ls
+
curve_ls
[
0
:
DEG_ORDER_U
]
file
.
write
(
'
curv 0.0 1.0 %s
\n
'
%
(
'
'
.
join
([
str
(
i
)
for
i
in
curve_ls
])))
# Blender has no U and V values for the curve
file
.
write
(
'
curv 0.0 1.0 %s
\n
'
%
(
"
"
.
join
([
str
(
i
)
for
i
in
curve_ls
])))
# Blender has no U and V values for the curve
# 'parm' keyword
# 'parm' keyword
tot_parm
=
(
DEG_ORDER_U
+
1
)
+
pt_num
tot_parm
=
(
DEG_ORDER_U
+
1
)
+
pt_num
...
@@ -244,7 +244,7 @@ def write_nurb(file, ob, ob_mat):
...
@@ -244,7 +244,7 @@ def write_nurb(file, ob, ob_mat):
parm_ls
[
i
]
=
0.0
parm_ls
[
i
]
=
0.0
parm_ls
[
-
(
1
+
i
)]
=
1.0
parm_ls
[
-
(
1
+
i
)]
=
1.0
file
.
write
(
'
parm u %s
\n
'
%
'
'
.
join
(
[
str
(
i
)
for
i
in
parm_ls
]
))
file
.
write
(
"
parm u %s
\n
"
%
"
"
.
join
(
[
"
%.6f
"
%
i
for
i
in
parm_ls
]))
file
.
write
(
'
end
\n
'
)
file
.
write
(
'
end
\n
'
)
...
@@ -799,7 +799,7 @@ def save(operator, context, filepath="",
...
@@ -799,7 +799,7 @@ def save(operator, context, filepath="",
use_uvs
=
True
,
use_uvs
=
True
,
use_materials
=
True
,
use_materials
=
True
,
copy_images
=
False
,
copy_images
=
False
,
use_modifiers
=
True
,
use_
apply_
modifiers
=
True
,
use_rotate_x90
=
True
,
use_rotate_x90
=
True
,
use_blen_objects
=
True
,
use_blen_objects
=
True
,
group_by_object
=
False
,
group_by_object
=
False
,
...
@@ -820,7 +820,7 @@ def save(operator, context, filepath="",
...
@@ -820,7 +820,7 @@ def save(operator, context, filepath="",
EXPORT_UV
=
use_uvs
,
EXPORT_UV
=
use_uvs
,
EXPORT_MTL
=
use_materials
,
EXPORT_MTL
=
use_materials
,
EXPORT_COPY_IMAGES
=
copy_images
,
EXPORT_COPY_IMAGES
=
copy_images
,
EXPORT_APPLY_MODIFIERS
=
use_modifiers
,
EXPORT_APPLY_MODIFIERS
=
use_
apply_
modifiers
,
EXPORT_ROTX90
=
use_rotate_x90
,
EXPORT_ROTX90
=
use_rotate_x90
,
EXPORT_BLEN_OBS
=
use_blen_objects
,
EXPORT_BLEN_OBS
=
use_blen_objects
,
EXPORT_GROUP_BY_OB
=
group_by_object
,
EXPORT_GROUP_BY_OB
=
group_by_object
,
...
...
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