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:
authorCampbell Barton <ideasman42@gmail.com>2018-07-12 16:09:15 +0300
committerCampbell Barton <ideasman42@gmail.com>2018-07-12 16:09:15 +0300
commit9dc19735c32dcec30d03516365c2cee8a4b4ddc6 (patch)
tree9ed6cd54c1f9e234618fbdc6b36e541b8bb3985d /depsgraph_debug.py
parent8a9cc98ff1328910b70f09bba196954c87738fb2 (diff)
Python: use fields
Diffstat (limited to 'depsgraph_debug.py')
-rw-r--r--depsgraph_debug.py24
1 files changed, 14 insertions, 10 deletions
diff --git a/depsgraph_debug.py b/depsgraph_debug.py
index 7d59cf24..76f25290 100644
--- a/depsgraph_debug.py
+++ b/depsgraph_debug.py
@@ -48,12 +48,12 @@ def _get_depsgraph(context):
# Save data from depsgraph to a specified file.
class SCENE_OT_depsgraph_save_common:
- filepath = StringProperty(
- name="File Path",
- description="Filepath used for saving the file",
- maxlen=1024,
- subtype='FILE_PATH',
- )
+ filepath: StringProperty(
+ name="File Path",
+ description="Filepath used for saving the file",
+ maxlen=1024,
+ subtype='FILE_PATH',
+ )
def _getExtension(self, context):
return ""
@@ -86,8 +86,10 @@ class SCENE_OT_depsgraph_save_common:
pass
-class SCENE_OT_depsgraph_relations_graphviz(Operator,
- SCENE_OT_depsgraph_save_common):
+class SCENE_OT_depsgraph_relations_graphviz(
+ Operator,
+ SCENE_OT_depsgraph_save_common,
+):
bl_idname = "scene.depsgraph_relations_graphviz"
bl_label = "Save Depsgraph"
bl_description = "Save current scene's dependency graph to a graphviz file"
@@ -102,8 +104,10 @@ class SCENE_OT_depsgraph_relations_graphviz(Operator,
return True
-class SCENE_OT_depsgraph_stats_gnuplot(Operator,
- SCENE_OT_depsgraph_save_common):
+class SCENE_OT_depsgraph_stats_gnuplot(
+ Operator,
+ SCENE_OT_depsgraph_save_common,
+):
bl_idname = "scene.depsgraph_stats_gnuplot"
bl_label = "Save Depsgraph Stats"
bl_description = "Save current scene's evaluaiton stats to gnuplot file"