[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [11338] branches/2-44-stable/blender/ source/blender/python/api2_2x/Texture.c: some texture values were being set as shorts/ints incorrectly
Campbell Barton
cbarton at metavr.com
Mon Jul 23 00:10:54 CEST 2007
Revision: 11338
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=11338
Author: campbellbarton
Date: 2007-07-23 00:10:54 +0200 (Mon, 23 Jul 2007)
Log Message:
-----------
some texture values were being set as shorts/ints incorrectly
Modified Paths:
--------------
branches/2-44-stable/blender/source/blender/python/api2_2x/Texture.c
Modified: branches/2-44-stable/blender/source/blender/python/api2_2x/Texture.c
===================================================================
--- branches/2-44-stable/blender/source/blender/python/api2_2x/Texture.c 2007-07-22 19:06:34 UTC (rev 11337)
+++ branches/2-44-stable/blender/source/blender/python/api2_2x/Texture.c 2007-07-22 22:10:54 UTC (rev 11338)
@@ -1412,7 +1412,7 @@
{
return EXPP_setIValueClamped ( value, &self->texture->iuser.frames,
EXPP_TEX_ANIMFRAME_MIN,
- EXPP_TEX_ANIMFRAME_MAX, 'h' );
+ EXPP_TEX_ANIMFRAME_MAX, 'i' );
}
static int Texture_setIUserCyclic( BPy_Texture * self, PyObject * value )
@@ -1435,7 +1435,7 @@
{
return EXPP_setIValueClamped ( value, &self->texture->len,
EXPP_TEX_ANIMLEN_MIN,
- EXPP_TEX_ANIMLEN_MAX, 'h' );
+ EXPP_TEX_ANIMLEN_MAX, 'i' );
}
/* this is too simple to keep supporting? disabled for time being (ton) */
@@ -1469,14 +1469,14 @@
{
return EXPP_setIValueClamped ( value, &self->texture->iuser.offset,
EXPP_TEX_ANIMOFFSET_MIN,
- EXPP_TEX_ANIMOFFSET_MAX, 'h' );
+ EXPP_TEX_ANIMOFFSET_MAX, 'i' );
}
static int Texture_setAnimStart( BPy_Texture * self, PyObject * value )
{
return EXPP_setIValueClamped ( value, &self->texture->iuser.sfra,
EXPP_TEX_ANIMSTART_MIN,
- EXPP_TEX_ANIMSTART_MAX, 'h' );
+ EXPP_TEX_ANIMSTART_MAX, 'i' );
}
static int Texture_setBrightness( BPy_Texture * self, PyObject * value )
More information about the Bf-blender-cvs
mailing list