[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [24506] trunk/blender/source/blender/ makesrna/intern/rna_access.c: Fix bug #19864: edge slide factor field is wrong.

Brecht Van Lommel brecht at blender.org
Wed Nov 11 19:30:37 CET 2009


Revision: 24506
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=24506
Author:   blendix
Date:     2009-11-11 19:30:37 +0100 (Wed, 11 Nov 2009)

Log Message:
-----------
Fix bug #19864: edge slide factor field is wrong. Setting RNA float
property non-array property as array did not work correct.

Modified Paths:
--------------
    trunk/blender/source/blender/makesrna/intern/rna_access.c

Modified: trunk/blender/source/blender/makesrna/intern/rna_access.c
===================================================================
--- trunk/blender/source/blender/makesrna/intern/rna_access.c	2009-11-11 17:58:37 UTC (rev 24505)
+++ trunk/blender/source/blender/makesrna/intern/rna_access.c	2009-11-11 18:30:37 UTC (rev 24506)
@@ -1248,8 +1248,12 @@
 	int i;
 
 	if((idprop=rna_idproperty_check(&prop, ptr))) {
-		if(prop->arraydimension == 0)
-			IDP_Double(idprop)= values[0];
+		if(prop->arraydimension == 0) {
+			if(idprop->type == IDP_FLOAT)
+				IDP_Float(idprop)= values[0];
+			else
+				IDP_Double(idprop)= values[0];
+		}
 		else if(idprop->subtype == IDP_FLOAT) {
 			memcpy(IDP_Array(idprop), values, sizeof(float)*idprop->len);
 		}





More information about the Bf-blender-cvs mailing list