[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [566] trunk/py/scripts/addons/fracture/ fracture_ops.py: * Set a minimum of 2 shards ( also prevents negative numbers).
Martin Buerbaum
martin.buerbaum at gmx.at
Tue Apr 13 15:24:40 CEST 2010
Revision: 566
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-extensions&revision=566
Author: pontiac
Date: 2010-04-13 15:24:40 +0200 (Tue, 13 Apr 2010)
Log Message:
-----------
* Set a minimum of 2 shards (also prevents negative numbers).
Modified Paths:
--------------
trunk/py/scripts/addons/fracture/fracture_ops.py
Modified: trunk/py/scripts/addons/fracture/fracture_ops.py
===================================================================
--- trunk/py/scripts/addons/fracture/fracture_ops.py 2010-04-13 13:19:58 UTC (rev 565)
+++ trunk/py/scripts/addons/fracture/fracture_ops.py 2010-04-13 13:24:40 UTC (rev 566)
@@ -374,6 +374,7 @@
nshards = IntProperty(name="Number of shards",
description="Number of shards the object should be split into.",
+ min=2
default=5)
crack_type = EnumProperty(name='Crack type',
@@ -387,8 +388,8 @@
roughness = FloatProperty(name="Roughness",
description="Roughness of the fracture surface",
+ min=0.0,
max=3.0,
- min=0.0,
default=0.5)
def execute(self, context):
More information about the Bf-extensions-cvs
mailing list