Cleanup: minor corrections

This commit is contained in:
Campbell Barton 2019-05-22 08:39:15 +10:00
parent 0910932e71
commit 8accb5a46f
3 changed files with 6 additions and 15 deletions

@ -19,7 +19,7 @@ def main(context, event):
def visible_objects_and_duplis():
"""Loop over (object, matrix) pairs (mesh only)"""
depsgraph = bpy.context.evaluated_depsgraph_get()
depsgraph = context.evaluated_depsgraph_get()
for dup in depsgraph.object_instances:
if dup.is_instance: # Real dupli instance
obj = dup.instance_object

@ -622,21 +622,13 @@ static void rna_def_depsgraph(BlenderRNA *brna)
func = RNA_def_function(
srna, "debug_relations_graphviz", "rna_Depsgraph_debug_relations_graphviz");
parm = RNA_def_string_file_path(func,
"filename",
NULL,
FILE_MAX,
"File Name",
"File in which to store graphviz debug output");
parm = RNA_def_string_file_path(
func, "filename", NULL, FILE_MAX, "File Name", "Output path for the graphviz debug file");
RNA_def_parameter_flags(parm, 0, PARM_REQUIRED);
func = RNA_def_function(srna, "debug_stats_gnuplot", "rna_Depsgraph_debug_stats_gnuplot");
parm = RNA_def_string_file_path(func,
"filename",
NULL,
FILE_MAX,
"File Name",
"File in which to store graphviz debug output");
parm = RNA_def_string_file_path(
func, "filename", NULL, FILE_MAX, "File Name", "Output path for the gnuplot debug file");
RNA_def_parameter_flags(parm, 0, PARM_REQUIRED);
parm = RNA_def_string_file_path(func,
"output_filename",

@ -2835,8 +2835,7 @@ static void rna_def_tool_settings(BlenderRNA *brna)
prop = RNA_def_property(srna, "double_threshold", PROP_FLOAT, PROP_DISTANCE);
RNA_def_property_float_sdna(prop, NULL, "doublimit");
RNA_def_property_ui_text(
prop, "Merge Threshold", "Threshold distance for Auto Merge");
RNA_def_property_ui_text(prop, "Merge Threshold", "Threshold distance for Auto Merge");
RNA_def_property_range(prop, 0.0, 1.0);
RNA_def_property_ui_range(prop, 0.0, 0.1, 0.01, 6);