[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [29359] trunk/blender/source/blender/ blenkernel/intern/object.c: Logic Editor: bugfix for " Unable to Add Controllers sometimes" (reported in IRC by Daniel Salazar ( ZanQdo)

Dalai Felinto dfelinto at gmail.com
Wed Jun 9 10:00:45 CEST 2010


Revision: 29359
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=29359
Author:   dfelinto
Date:     2010-06-09 10:00:45 +0200 (Wed, 09 Jun 2010)

Log Message:
-----------
Logic Editor: bugfix for "Unable to Add Controllers sometimes" (reported in IRC by Daniel Salazar (ZanQdo)
What was happening; if
the old code (2.49) was changing the status from 0 to 1 inside the interface code. e.g. if (!ob->status) ob->status = 1;
Initializing it properly (in blenkernel) and making sure the new status is ever 0 (in rna_object.c) should fix it.

And yes, the log is bigger than the patch !

Modified Paths:
--------------
    trunk/blender/source/blender/blenkernel/intern/object.c

Modified: trunk/blender/source/blender/blenkernel/intern/object.c
===================================================================
--- trunk/blender/source/blender/blenkernel/intern/object.c	2010-06-09 07:55:49 UTC (rev 29358)
+++ trunk/blender/source/blender/blenkernel/intern/object.c	2010-06-09 08:00:45 UTC (rev 29359)
@@ -1026,6 +1026,8 @@
 	ob->anisotropicFriction[2] = 1.0f;
 	ob->gameflag= OB_PROP|OB_COLLISION;
 	ob->margin = 0.0;
+	ob->init_state=1;
+	ob->state=1;
 	/* ob->pad3 == Contact Processing Threshold */
 	ob->m_contactProcessingThreshold = 1.;
 	





More information about the Bf-blender-cvs mailing list