diff options
author | NBurn <7nburn@gmail.com> | 2019-01-18 00:48:54 +0300 |
---|---|---|
committer | NBurn <7nburn@gmail.com> | 2019-01-18 00:48:54 +0300 |
commit | aeabdc02a83a976b2f594cd66873c6d2b537e669 (patch) | |
tree | 3ac5922be25219ab666aae4b8d04002bce2e70a6 /io_online_sketchfab | |
parent | ba97e19e5b3df449784a4cc4ed89ce7b511ec3e4 (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 'io_online_sketchfab')
-rw-r--r-- | io_online_sketchfab/__init__.py | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/io_online_sketchfab/__init__.py b/io_online_sketchfab/__init__.py index fa1cefdd..222be113 100644 --- a/io_online_sketchfab/__init__.py +++ b/io_online_sketchfab/__init__.py @@ -340,16 +340,16 @@ class VIEW3D_PT_sketchfab(Panel): # property group containing all properties for the user interface class SketchfabProps(PropertyGroup): - description = StringProperty( + description: StringProperty( name="Description", description="Description of the model (optional)", default="") - filepath = StringProperty( + filepath: StringProperty( name="Filepath", description="internal use", default="", ) - lamps = EnumProperty( + lamps: EnumProperty( name="Lamps", items=(('ALL', "All", "Export all lamps in the file"), ('NONE', "None", "Don't export any lamps"), @@ -357,35 +357,35 @@ class SketchfabProps(PropertyGroup): description="Determines which lamps are exported", default='ALL', ) - models = EnumProperty( + models: EnumProperty( name="Models", items=(('ALL', "All", "Export all meshes in the file"), ('SELECTION', "Selection", "Only export selected meshes")), description="Determines which meshes are exported", default='SELECTION', ) - private = BoolProperty( + private: BoolProperty( name="Private", description="Upload as private (requires a pro account)", default=False, ) - password = StringProperty( + password: StringProperty( name="Password", description="Password-protect your model (requires a pro account)", default="", subtype="PASSWORD" ) - tags = StringProperty( + tags: StringProperty( name="Tags", description="List of tags, separated by spaces (optional)", default="", ) - title = StringProperty( + title: StringProperty( name="Title", description="Title of the model (determined automatically if left empty)", default="", ) - token = StringProperty( + token: StringProperty( name="Api Key", description="You can find this on your dashboard at the Sketchfab website", default="", @@ -398,7 +398,7 @@ class SketchfabEmailToken(Operator): bl_idname = "wm.sketchfab_email_token" bl_label = "Enter your email to get a sketchfab token" - email = StringProperty( + email: StringProperty( name="Email", default="you@example.com", ) @@ -463,7 +463,7 @@ class SfabAddonPreferences(AddonPreferences): # when defining this in a submodule of a python package. bl_idname = __name__ - category = StringProperty( + category: StringProperty( name="Tab Category", description="Choose a name for the category of the panel", default="File I/O", |