[Bf-extensions-cvs] [4582536d] master: annotation property updates

NBurn noreply at git.blender.org
Tue May 21 02:03:37 CEST 2019


Commit: 4582536d9c81812ffc1084d073f43ceaf0441c57
Author: NBurn
Date:   Mon May 20 20:02:45 2019 -0400
Branches: master
https://developer.blender.org/rBAC4582536d9c81812ffc1084d073f43ceaf0441c57

annotation property updates

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

M	automat/AdjOp.py
M	mesh_show_vgroup_weights.py
M	space_view3d_enhanced_3d_cursor.py

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

diff --git a/automat/AdjOp.py b/automat/AdjOp.py
index 6ccd20d9..c5e1ee3c 100644
--- a/automat/AdjOp.py
+++ b/automat/AdjOp.py
@@ -23,9 +23,9 @@ class AdjustableOperatorFromTexture(bpy.types.Operator):
 
     # Variables used for storing the filepath given by blender's file manager
 
-    filepath = bpy.props.StringProperty(subtype="FILE_PATH")
-    filename = bpy.props.StringProperty()
-    directory = bpy.props.StringProperty(subtype="FILE_PATH")
+    filepath: bpy.props.StringProperty(subtype="FILE_PATH")
+    filename: bpy.props.StringProperty()
+    directory: bpy.props.StringProperty(subtype="FILE_PATH")
 
 
 
diff --git a/mesh_show_vgroup_weights.py b/mesh_show_vgroup_weights.py
index 3d33a0d7..89698bd4 100644
--- a/mesh_show_vgroup_weights.py
+++ b/mesh_show_vgroup_weights.py
@@ -254,7 +254,7 @@ class RemoveFromVertexGroup(bpy.types.Operator):
     bl_description = "Remove a specific vertex from a specific vertex group"
 
     #XXX abusing vector props here a bit; the first element is the vert index and the second is the group index
-    vert_and_group = bpy.props.IntVectorProperty(name = "Vertex and Group to remove", size = 2)
+    vert_and_group: bpy.props.IntVectorProperty(name = "Vertex and Group to remove", size = 2)
 
     @classmethod
     def poll(cls, context):
diff --git a/space_view3d_enhanced_3d_cursor.py b/space_view3d_enhanced_3d_cursor.py
index 77409cd9..5b4e87a3 100644
--- a/space_view3d_enhanced_3d_cursor.py
+++ b/space_view3d_enhanced_3d_cursor.py
@@ -3844,7 +3844,7 @@ class BookmarkLibraryProp(bpy.types.PropertyGroup):
     name: bpy.props.StringProperty(
         name="Name", description="Name of the bookmark library",
         options={'HIDDEN'})
-    bookmarks = bpy.props.PointerProperty(
+    bookmarks: bpy.props.PointerProperty(
         type=BookmarkIDBlock,
         options={'HIDDEN'})
     system: bpy.props.EnumProperty(
@@ -4044,7 +4044,7 @@ class DeleteCursor3DBookmarkLibrary(bpy.types.Operator):
 # TODO: ~a bug? Somewhy tooltip shows "Cursor3DToolsSettings.foo"
 # instead of "bpy.types.Screen.cursor_3d_tools_settings.foo"
 class Cursor3DToolsSettings(bpy.types.PropertyGroup):
-    transform_options = bpy.props.PointerProperty(
+    transform_options: bpy.props.PointerProperty(
         type=TransformExtraOptionsProp,
         options={'HIDDEN'})
 
@@ -4055,58 +4055,58 @@ class Cursor3DToolsSettings(bpy.types.PropertyGroup):
             "and becomes the less responsive the more complex scene you have)!",
         default=True)
 
-    cursor_lock = bpy.props.BoolProperty(
+    cursor_lock: bpy.props.BoolProperty(
         name="Lock cursor location",
         description="Prevent accidental cursor movement",
         default=False)
 
-    draw_guides = bpy.props.BoolProperty(
+    draw_guides: bpy.props.BoolProperty(
         name="Guides",
         description="Display guides",
         default=True)
 
-    draw_snap_elements = bpy.props.BoolProperty(
+    draw_snap_elements: bpy.props.BoolProperty(
         name="Snap elements",
         description="Display snap elements",
         default=True)
 
-    draw_N = bpy.props.BoolProperty(
+    draw_N: bpy.props.BoolProperty(
         name="Surface normal",
         description="Display surface normal",
         default=True)
 
-    draw_T1 = bpy.props.BoolProperty(
+    draw_T1: bpy.props.BoolProperty(
         name="Surface 1st tangential",
         description="Display 1st surface tangential",
         default=True)
 
-    draw_T2 = bpy.props.BoolProperty(
+    draw_T2: bpy.props.BoolProperty(
         name="Surface 2nd tangential",
         description="Display 2nd surface tangential",
         default=True)
 
-    stick_to_obj = bpy.props.BoolProperty(
+    stick_to_obj: bpy.props.BoolProperty(
         name="Stick to objects",
         description="Move cursor along with object it was snapped to",
         default=True)
 
     # HISTORY-RELATED
-    history = bpy.props.PointerProperty(
+    history: bpy.props.PointerProperty(
         type=CursorHistoryProp,
         options={'HIDDEN'})
 
     # BOOKMARK-RELATED
-    libraries = bpy.props.PointerProperty(
+    libraries: bpy.props.PointerProperty(
         type=BookmarkLibraryIDBlock,
         options={'HIDDEN'})
 
-    show_bookmarks = bpy.props.BoolProperty(
+    show_bookmarks: bpy.props.BoolProperty(
         name="Show bookmarks",
         description="Show active bookmark in 3D view",
         default=True,
         options={'HIDDEN'})
 
-    free_coord_precision = bpy.props.IntProperty(
+    free_coord_precision: bpy.props.IntProperty(
         name="Coord precision",
         description="Numer of digits afer comma "\
                     "for displayed coordinate values",
@@ -4115,7 +4115,7 @@ class Cursor3DToolsSettings(bpy.types.PropertyGroup):
         max=10,
         options={'HIDDEN'})
 
-    auto_register_keymaps = bpy.props.BoolProperty(
+    auto_register_keymaps: bpy.props.BoolProperty(
         name="Auto Register Keymaps",
         default=True)



More information about the Bf-extensions-cvs mailing list