[Bf-taskforce25] How to translate this into operators?

Shaul Kedem shaul.kedem at gmail.com
Tue Jan 6 04:05:45 CET 2009


Hi,

 How should I translate the following into operators? I created ones
for selectconnected_mesh_all(); and selectconnected_mesh(); but I'm a
bit worried about the whole (G.scene->selectmode & SCE_SELECT_FACE) ==
0 thing...

			case LKEY:
				if(G.obedit) {
					if(G.obedit->type==OB_MESH) {
						if (G.qual & LR_CTRLKEY) {
							if ((G.scene->selectmode & SCE_SELECT_FACE) == 0) {
								selectconnected_mesh_all(); /* normal select linked */
							} else {
								selectconnected_delimit_mesh_all(); /* select linked with edge
crease delimiting */
							}
						} else {
							if ((G.scene->selectmode & SCE_SELECT_FACE) == 0) {
								selectconnected_mesh();
							} else {
								selectconnected_delimit_mesh();
							}
						}
					}



Thanks,
Shaul


More information about the Bf-taskforce25 mailing list