[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [3514] contrib/py/scripts/addons/ space_view3d_paint_bprojection.py: BProjection: make change for subdividing the plan
geo kgeo
kgeogeo at hotmail.com
Thu Jun 21 14:50:17 CEST 2012
Revision: 3514
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-extensions&revision=3514
Author: kgeogeo
Date: 2012-06-21 12:50:16 +0000 (Thu, 21 Jun 2012)
Log Message:
-----------
BProjection: make change for subdividing the plan
Modified Paths:
--------------
contrib/py/scripts/addons/space_view3d_paint_bprojection.py
Modified: contrib/py/scripts/addons/space_view3d_paint_bprojection.py
===================================================================
--- contrib/py/scripts/addons/space_view3d_paint_bprojection.py 2012-06-21 00:20:10 UTC (rev 3513)
+++ contrib/py/scripts/addons/space_view3d_paint_bprojection.py 2012-06-21 12:50:16 UTC (rev 3514)
@@ -310,7 +310,7 @@
Ob.custom_sub = IntProperty(name="Subdivide", description="Number of subdivision of the plan",
- min=1, max=20, default=10)
+ min=0, max=20, default=0)
# UV properties
Ob.custom_scaleuv = FloatVectorProperty(name="ScaleUV", description="Scale the texture's UV",
@@ -724,7 +724,8 @@
ob.data.edges[len(ob.data.edges)-1-i].crease = 1
bpy.ops.object.editmode_toggle()
- bpy.ops.mesh.subdivide(number_cuts = em.custom_sub)
+ if em.custom_sub > 0:
+ bpy.ops.mesh.subdivide(number_cuts = em.custom_sub)
em.select = True
bpy.ops.object.hook_add_selob()
@@ -1309,4 +1310,4 @@
bpy.utils.unregister_module(__name__)
if __name__ == "__main__":
- register()
\ No newline at end of file
+ register()
More information about the Bf-extensions-cvs
mailing list