Patch #6192 - Wave Modifier Option to move verts along normals

This patch adds an option to the wave modifier to displace along the normals
of the base mesh, rather than in the local Z direction.

Thanks to Michael Fox (mfoxdoggg) for the patch!
This commit is contained in:
2007-04-30 16:49:12 +00:00
parent 0b66fe6a48
commit 469208a101
5 changed files with 68 additions and 18 deletions

View File

@@ -743,7 +743,7 @@ static int wave_setter( BPy_Modifier *self, int type, PyObject *value )
return EXPP_setFloatClamped( value, &md->timeoffs, -1000.0, 1000.0 );
case EXPP_MOD_FLAG:
return EXPP_setIValueRange( value, &md->flag, 0,
WAV_X+WAV_Y+WAV_CYCL, 'h' );
MOD_WAVE_X | MOD_WAVE_Y | MOD_WAVE_CYCL, 'h' );
default:
return EXPP_ReturnIntError( PyExc_KeyError, "key not found" );
}