[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [50874] trunk/blender/source/blender/ blenkernel/intern/text.c: fix for gibberish text in 2DFilter actuator when text unlinked through the Text Editor

Dalai Felinto dfelinto at gmail.com
Tue Sep 25 07:48:34 CEST 2012


Revision: 50874
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=50874
Author:   dfelinto
Date:     2012-09-25 05:48:33 +0000 (Tue, 25 Sep 2012)
Log Message:
-----------
fix for gibberish text in 2DFilter actuator when text unlinked through the Text Editor
(reported nowhere, I found this while testing osl custom node)

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

Modified: trunk/blender/source/blender/blenkernel/intern/text.c
===================================================================
--- trunk/blender/source/blender/blenkernel/intern/text.c	2012-09-25 05:17:23 UTC (rev 50873)
+++ trunk/blender/source/blender/blenkernel/intern/text.c	2012-09-25 05:48:33 UTC (rev 50874)
@@ -48,6 +48,7 @@
 
 #include "DNA_constraint_types.h"
 #include "DNA_controller_types.h"
+#include "DNA_actuator_types.h"
 #include "DNA_scene_types.h"
 #include "DNA_screen_types.h"
 #include "DNA_space_types.h"
@@ -528,6 +529,7 @@
 	SpaceLink *sl;
 	Object *ob;
 	bController *cont;
+	bActuator *act;
 	bConstraint *con;
 	short update;
 
@@ -541,6 +543,15 @@
 				if (pc->text == text) pc->text = NULL;
 			}
 		}
+		/* game actuators */
+		for (act = ob->actuators.first; act; act = act->next) {
+			if (act->type == ACT_2DFILTER) {
+				bTwoDFilterActuator *tfa;
+				
+				tfa = act->data;
+				if (tfa->text == text) tfa->text = NULL;
+			}
+		}
 
 		/* pyconstraints */
 		update = 0;




More information about the Bf-blender-cvs mailing list