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

Shaul Kedem shaul.kedem at gmail.com
Thu Jan 8 04:28:22 CET 2009


ok, more mesh ops at:
https://projects.blender.org/tracker/index.php?func=detail&aid=18149&group_id=9&atid=127

still have problems with hide_mesh. if anyone knows how I should do
this please advise/point to the right direction (see michael's foxx
code, its a big enum, not a bolean)

Regards,
shul

On Mon, Jan 5, 2009 at 10:05 PM, Shaul Kedem <shaul.kedem at gmail.com> wrote:
> 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