diff --git a/release/scripts/modules/retopo.py b/release/scripts/modules/retopo.py index 89d1066da52..e9cd6240740 100644 --- a/release/scripts/modules/retopo.py +++ b/release/scripts/modules/retopo.py @@ -23,7 +23,7 @@ import bpy EPS = 0.001 EPS_LINE_LINE = 0.02 EPS_COLLAPSE = 0.05 -EPS_HUB = 0.05 +EPS_HUB = 0.002 def get_hub(co, _hubs): @@ -158,9 +158,7 @@ class Spline: hub_prev = hub def get_points(stroke): - from Mathutils import Vector - # TODO - why isnt point.co a Vector? - return [Vector(tuple(point.co)) for point in stroke.points] + return [point.co.copy() for point in stroke.points] def get_splines(gp): for l in gp.layers: diff --git a/source/blender/makesrna/intern/rna_gpencil.c b/source/blender/makesrna/intern/rna_gpencil.c index 87900c943a9..129fad4e98c 100644 --- a/source/blender/makesrna/intern/rna_gpencil.c +++ b/source/blender/makesrna/intern/rna_gpencil.c @@ -77,7 +77,7 @@ static void rna_def_gpencil_stroke_point(BlenderRNA *brna) RNA_def_struct_sdna(srna, "bGPDspoint"); RNA_def_struct_ui_text(srna, "Grease Pencil Stroke Point", "Data point for freehand stroke curve."); - prop= RNA_def_property(srna, "co", PROP_FLOAT, PROP_NONE); + prop= RNA_def_property(srna, "co", PROP_FLOAT, PROP_XYZ); RNA_def_property_float_sdna(prop, NULL, "x"); RNA_def_property_array(prop, 3); RNA_def_property_ui_text(prop, "Coordinates", "");