[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [25022] trunk/blender: retopo: use a smaller scale for faces that are modeled where 1.0==1m, will eventually try to use a method that doesnt depend on scale like this
Campbell Barton
ideasman42 at gmail.com
Mon Nov 30 11:21:43 CET 2009
Revision: 25022
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=25022
Author: campbellbarton
Date: 2009-11-30 11:21:42 +0100 (Mon, 30 Nov 2009)
Log Message:
-----------
retopo: use a smaller scale for faces that are modeled where 1.0==1m, will eventually try to use a method that doesnt depend on scale like this
grease pencil point.co wasnt a vector when it should be
Modified Paths:
--------------
trunk/blender/release/scripts/modules/retopo.py
trunk/blender/source/blender/makesrna/intern/rna_gpencil.c
Modified: trunk/blender/release/scripts/modules/retopo.py
===================================================================
--- trunk/blender/release/scripts/modules/retopo.py 2009-11-30 05:11:19 UTC (rev 25021)
+++ trunk/blender/release/scripts/modules/retopo.py 2009-11-30 10:21:42 UTC (rev 25022)
@@ -23,7 +23,7 @@
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 @@
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:
Modified: trunk/blender/source/blender/makesrna/intern/rna_gpencil.c
===================================================================
--- trunk/blender/source/blender/makesrna/intern/rna_gpencil.c 2009-11-30 05:11:19 UTC (rev 25021)
+++ trunk/blender/source/blender/makesrna/intern/rna_gpencil.c 2009-11-30 10:21:42 UTC (rev 25022)
@@ -77,7 +77,7 @@
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", "");
More information about the Bf-blender-cvs
mailing list