[Bf-extensions-cvs] [5a90576] master: Password and token is hidden with in UI.

Jiri Hnidek noreply at git.blender.org
Thu Aug 14 14:58:16 CEST 2014


Commit: 5a90576d30a0d24283fa97d905e511b35b119735
Author: Jiri Hnidek
Date:   Thu Aug 14 14:44:14 2014 +0200
Branches: master
https://developer.blender.org/rBA5a90576d30a0d24283fa97d905e511b35b119735

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