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
1f3ec22d
Commit
1f3ec22d
authored
8 years ago
by
meta-androcto
Browse files
Options
Downloads
Patches
Plain Diff
fix for typo in nurbs presets
parent
d95ecc49
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
add_curve_extra_objects/__init__.py
+7
-4
7 additions, 4 deletions
add_curve_extra_objects/__init__.py
with
7 additions
and
4 deletions
add_curve_extra_objects/__init__.py
+
7
−
4
View file @
1f3ec22d
...
@@ -92,7 +92,10 @@ def convert_old_presets(data_path, msg_data_path, old_preset_subdir, new_preset_
...
@@ -92,7 +92,10 @@ def convert_old_presets(data_path, msg_data_path, old_preset_subdir, new_preset_
file_preset
.
write
(
"
import bpy
\n
"
)
file_preset
.
write
(
"
import bpy
\n
"
)
file_preset
.
write
(
"
op = bpy.context.active_operator
\n
"
)
file_preset
.
write
(
"
op = bpy.context.active_operator
\n
"
)
for
prop
,
value
in
vars
(
op
).
items
():
for
prop
,
value
in
vars
(
op
).
items
():
file_preset
.
write
(
"
op.%s = %s
\n
"
%
(
prop
,
str
(
value
)))
if
isinstance
(
value
,
str
):
file_preset
.
write
(
"
op.%s =
'
%s
'
\n
"
%
(
prop
,
str
(
value
)))
else
:
file_preset
.
write
(
"
op.%s = %s
\n
"
%
(
prop
,
str
(
value
)))
file_preset
.
close
()
file_preset
.
close
()
print
(
"
Writing new preset to %s
"
%
new_file_path
)
print
(
"
Writing new preset to %s
"
%
new_file_path
)
...
@@ -105,10 +108,10 @@ class CurveExtraObjectsAddonPreferences(AddonPreferences):
...
@@ -105,10 +108,10 @@ class CurveExtraObjectsAddonPreferences(AddonPreferences):
bl_idname
=
__name__
bl_idname
=
__name__
spiral_fixdic
=
{
"
spiral_type
"
:
[
'
ARCH
'
,
'
ARCH
'
,
'
LOG
'
,
'
SPHERE
'
,
'
TORUS
'
],
spiral_fixdic
=
{
"
spiral_type
"
:
[
'
ARCH
'
,
'
ARCH
'
,
'
LOG
'
,
'
SPHERE
'
,
'
TORUS
'
],
"
curve_type
"
:
[
'
POLY
'
,
'
NURB
'
],
"
curve_type
"
:
[
'
POLY
'
,
'
NURB
S
'
],
"
spiral_direction
"
:
[
'
COUNTER_CLOCKWISE
'
,
'
CLOCKWISE
'
]
"
spiral_direction
"
:
[
'
COUNTER_CLOCKWISE
'
,
'
CLOCKWISE
'
]
}
}
update_sp
r
iral_presets_msg
=
StringProperty
(
default
=
"
Nothing to do
"
)
update_spiral_presets_msg
=
StringProperty
(
default
=
"
Nothing to do
"
)
update_spiral_presets
=
BoolProperty
(
update_spiral_presets
=
BoolProperty
(
name
=
"
Update Old Presets
"
,
name
=
"
Update Old Presets
"
,
description
=
"
Update presets to reflect data changes
"
,
description
=
"
Update presets to reflect data changes
"
,
...
@@ -124,7 +127,7 @@ class CurveExtraObjectsAddonPreferences(AddonPreferences):
...
@@ -124,7 +127,7 @@ class CurveExtraObjectsAddonPreferences(AddonPreferences):
layout
=
self
.
layout
layout
=
self
.
layout
layout
.
label
(
text
=
"
Spirals
"
)
layout
.
label
(
text
=
"
Spirals
"
)
if
self
.
update_spiral_presets
:
if
self
.
update_spiral_presets
:
layout
.
label
(
self
.
update_sp
r
iral_presets_msg
,
icon
=
'
FILE_TICK
'
)
layout
.
label
(
self
.
update_spiral_presets_msg
,
icon
=
'
FILE_TICK
'
)
else
:
else
:
layout
.
prop
(
self
,
"
update_spiral_presets
"
)
layout
.
prop
(
self
,
"
update_spiral_presets
"
)
...
...
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