code cleanup and add mball select similar into the menu

This commit is contained in:
Campbell Barton 2013-10-25 06:22:15 +00:00
parent 93edbf3510
commit 5b6e6b7285
2 changed files with 6 additions and 2 deletions

@ -716,6 +716,10 @@ class VIEW3D_MT_select_edit_metaball(Menu):
layout.operator("mball.select_random_metaelems")
layout.separator()
layout.operator_menu_enum("mball.select_similar", "type", text="Similar")
class VIEW3D_MT_select_edit_lattice(Menu):
bl_label = "Select"

@ -294,13 +294,13 @@ void FastGaussianBlurOperation::IIR_gauss(MemoryBuffer *src, float sigma, unsign
int offset;
for (y = 0; y < src_height; ++y) {
const int yx = y * src_width;
offset = yx*COM_NUMBER_OF_CHANNELS + chan;
offset = yx * COM_NUMBER_OF_CHANNELS + chan;
for (x = 0; x < src_width; ++x) {
X[x] = buffer[offset];
offset += COM_NUMBER_OF_CHANNELS;
}
YVV(src_width);
offset = yx*COM_NUMBER_OF_CHANNELS + chan;
offset = yx * COM_NUMBER_OF_CHANNELS + chan;
for (x = 0; x < src_width; ++x) {
buffer[offset] = Y[x];
offset += COM_NUMBER_OF_CHANNELS;