[Bf-extensions-cvs] [b487d65] dxf_import: Password and token is hidden with in UI.

Jiri Hnidek noreply at git.blender.org
Fri Aug 15 12:38:31 CEST 2014


Commit: b487d659d7318734a0ab3abeaf63a39c63448b84
Author: Jiri Hnidek
Date:   Thu Aug 14 14:44:14 2014 +0200
Branches: dxf_import
https://developer.blender.org/rBAb487d659d7318734a0ab3abeaf63a39c63448b84

Password and token is hidden with in UI.

When you use subtype 'PASSWORD' of string property, then this string
property is hidden in UI. Asterisks are used to hide every character
of secret string.

===================================================================

M	io_online_sketchfab/__init__.py

===================================================================

diff --git a/io_online_sketchfab/__init__.py b/io_online_sketchfab/__init__.py
index 23698df..ef8e39b 100644
--- a/io_online_sketchfab/__init__.py
+++ b/io_online_sketchfab/__init__.py
@@ -364,6 +364,7 @@ class SketchfabProps(bpy.types.PropertyGroup):
             name="Password",
             description="Password-protect your model (requires a pro account)",
             default="",
+            subtype="PASSWORD"
             )
     tags = StringProperty(
             name="Tags",
@@ -380,6 +381,7 @@ class SketchfabProps(bpy.types.PropertyGroup):
             description="You can find this on your dashboard at the Sketchfab website",
             default="",
             update=update_token,
+            subtype="PASSWORD"
             )



More information about the Bf-extensions-cvs mailing list