Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNBurn <7nburn@gmail.com>2019-01-18 00:48:54 +0300
committerNBurn <7nburn@gmail.com>2019-01-18 00:48:54 +0300
commitaeabdc02a83a976b2f594cd66873c6d2b537e669 (patch)
tree3ac5922be25219ab666aae4b8d04002bce2e70a6 /camera_turnaround.py
parentba97e19e5b3df449784a4cc4ed89ce7b511ec3e4 (diff)
Update Add-ons class properties to annotations
This should take care of most of the class property conversions to use the new annotation format (colon instead of equals) for assignment. There may still be a few edge cases that were missed.
Diffstat (limited to 'camera_turnaround.py')
-rw-r--r--camera_turnaround.py26
1 files changed, 13 insertions, 13 deletions
diff --git a/camera_turnaround.py b/camera_turnaround.py
index 78fdab60..36393f3a 100644
--- a/camera_turnaround.py
+++ b/camera_turnaround.py
@@ -184,47 +184,47 @@ class RunAction(Operator):
# ------------------------------------------------------
class CameraTurnProps(PropertyGroup):
- camera_revol_x = FloatProperty(
+ camera_revol_x: FloatProperty(
name='X', min=0, max=25,
default=0, precision=2,
description='Number total of revolutions in X axis'
)
- camera_revol_y = FloatProperty(
+ camera_revol_y: FloatProperty(
name='Y', min=0, max=25,
default=0, precision=2,
description='Number total of revolutions in Y axis'
)
- camera_revol_z = FloatProperty(
+ camera_revol_z: FloatProperty(
name='Z', min=0, max=25,
default=1, precision=2,
description='Number total of revolutions in Z axis'
)
- inverse_x = BoolProperty(
+ inverse_x: BoolProperty(
name="-X",
description="Inverse rotation",
default=False
)
- inverse_y = BoolProperty(
+ inverse_y: BoolProperty(
name="-Y",
description="Inverse rotation",
default=False
)
- inverse_z = BoolProperty(
+ inverse_z: BoolProperty(
name="-Z",
description="Inverse rotation",
default=False
)
- use_cursor = BoolProperty(
+ use_cursor: BoolProperty(
name="Use cursor position",
description="Use cursor position instead of object origin",
default=False
)
- back_forw = BoolProperty(
+ back_forw: BoolProperty(
name="Back and forward",
description="Create back and forward animation",
default=False
)
- dolly_zoom = EnumProperty(
+ dolly_zoom: EnumProperty(
items=(
('0', "None", ""),
('1', "Dolly zoom", ""),
@@ -233,24 +233,24 @@ class CameraTurnProps(PropertyGroup):
name="Lens Effects",
description="Create a camera lens movement"
)
- camera_from_lens = FloatProperty(
+ camera_from_lens: FloatProperty(
name="From",
min=1, max=500, default=35,
precision=3,
description="Start lens value"
)
- camera_to_lens = FloatProperty(
+ camera_to_lens: FloatProperty(
name="To",
min=1, max=500,
default=35, precision=3,
description="End lens value"
)
- track = BoolProperty(
+ track: BoolProperty(
name="Create track constraint",
description="Add a track constraint to the camera",
default=False
)
- reset_cam_anim = BoolProperty(
+ reset_cam_anim: BoolProperty(
name="Clear Camera",
description="Clear previous camera animations if there are any\n"
"(For instance, previous Dolly Zoom)",