[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [816] branches/ivygen/ivy_test.py: - fix error from last commit
Florian Meyer
florianfelix at web.de
Tue Jul 20 09:29:01 CEST 2010
Revision: 816
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-extensions&revision=816
Author: testscreenings
Date: 2010-07-20 09:29:01 +0200 (Tue, 20 Jul 2010)
Log Message:
-----------
- fix error from last commit
Modified Paths:
--------------
branches/ivygen/ivy_test.py
Modified: branches/ivygen/ivy_test.py
===================================================================
--- branches/ivygen/ivy_test.py 2010-07-20 06:53:51 UTC (rev 815)
+++ branches/ivygen/ivy_test.py 2010-07-20 07:29:01 UTC (rev 816)
@@ -194,7 +194,7 @@
tmpIvy = IvyNode()
# set climbing state
- tmpIvy.climbing = collisionResult[0]
+ #tmpIvy.climbing = collisionResult[0]
# set position
tmpIvy.position = prevIvy.position + growVector + gravityVector
@@ -273,13 +273,13 @@
random.seed(props.ivySeed) #controlling the random seed
scene = context.scene
- try:
- obj = context.active_object
+ #try:
+ # obj = context.active_object
IVY = Ivy() #create main IvyObject stores all the IvyRoots.IvyNodes
- try:
- IVY.ivyCollider = obj
- print('obj.data', IVY.ivyCollider.data)
+ #try:
+ # IVY.ivyCollider = obj
+ # print('obj.data', IVY.ivyCollider.data)
# PROBLEM: SOMEHOW DOESN'T WORK
IVY.ivyRoots = [] #empty the roots list
@@ -323,7 +323,7 @@
default=0.5)
def poll(self, context):
- return context.scene != None
+ return context.active_object != None
def execute(self, context):
print('\n____________START_____________')
More information about the Bf-extensions-cvs
mailing list