[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [11226] trunk/blender/source/blender/src/ editipo.c: Bugfix #6931:

Joshua Leung aligorith at gmail.com
Wed Jul 11 12:14:01 CEST 2007


Revision: 11226
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=11226
Author:   aligorith
Date:     2007-07-11 12:13:59 +0200 (Wed, 11 Jul 2007)

Log Message:
-----------
Bugfix #6931:

I-Key on Fields not working for Empty Object. Was wrongly only checking for Meshes.

Modified Paths:
--------------
    trunk/blender/source/blender/src/editipo.c

Modified: trunk/blender/source/blender/src/editipo.c
===================================================================
--- trunk/blender/source/blender/src/editipo.c	2007-07-11 03:33:28 UTC (rev 11225)
+++ trunk/blender/source/blender/src/editipo.c	2007-07-11 10:13:59 UTC (rev 11226)
@@ -2659,11 +2659,14 @@
 		}
 		else if(G.buts->mainb==CONTEXT_OBJECT) {
 			ob= OBACT;
-			if(ob && ob->type==OB_MESH) {
+			if(ob) {
 				id= (ID *) (ob);
 				if(id) {
-					event= pupmenu("Insert Key %t|Surface Damping%x0|Random Damping%x1|Permeability%x2|Force Strength%x3|Force Falloff%x4");
-					if(event== -1) return;
+					if(ob->type==OB_MESH) 
+						event= pupmenu("Insert Key %t|Surface Damping%x0|Random Damping%x1|Permeability%x2|Force Strength%x3|Force Falloff%x4");
+					else
+						event= pupmenu("Insert Key %t|Force Strength%x3|Force Falloff%x4");
+					if(event == -1) return;
 
 					if(event==0) {
 						insertkey(id, ID_OB, NULL, NULL, OB_PD_SDAMP);





More information about the Bf-blender-cvs mailing list